Skip to content

Commit

Permalink
Update test-as_wide_table.R
Browse files Browse the repository at this point in the history
add `stringr::`
  • Loading branch information
ehwenk committed Nov 18, 2024
1 parent 768fc4e commit 85eb6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-as_wide_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ test_that("old versions will complain", {
test_that("function `collapse_cols` works", {
data <- (austraits_5.0.0_lite %>% extract_dataset("Bloomfield_2018"))$locations
data_collapsed <- (data %>% collapse_cols())[[1]]
expect_equal(str_count(data_collapsed, "="), 5)
expect_equal(stringr::str_count(data_collapsed, "="), 5)
expect_equal(str_count(data_collapsed, "; "), 4)
})

0 comments on commit 85eb6b0

Please sign in to comment.