Skip to content

Commit

Permalink
fix cbind, dont want duplicat column names, use seq_len but differently
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitejohnson committed Oct 30, 2024
1 parent 3621be0 commit cac864d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/testthat/test_preprocess_ww_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,8 @@ test_that("Function handles LOD values equal to concentration values", {
})

test_that("Constant population per site", {
wrong_pop <- cbind(
ww_data,
ww_data |> dplyr::mutate(site = "wrong pop")
)
wrong_pop <- ww_data

wrong_pop$site_pop <- 1e6 + seq_len(nrow(ww_data))

expect_error(
Expand Down

0 comments on commit cac864d

Please sign in to comment.