Skip to content

Commit

Permalink
lints3 (stringsAsFactors = FALSE in tests, etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
rempsyc committed Aug 18, 2023
1 parent 900fc4d commit e7e1e94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-report_participants.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ test_that("report_participants test NAs no warning", {

test_that("report_participants age as character", {
data <- data.frame(
Age = as.character(c(22, 22, 28, 11, 42, 52))
Age = as.character(c(22, 22, 28, 11, 42, 52), stringsAsFactors = FALSE),
stringsAsFactors = FALSE
)
expect_snapshot(
variant = "windows",
Expand All @@ -165,7 +166,7 @@ test_that("report_participants different gender spellings", {
"Woman", "W", "Female", "Women", "Girl",
"Lady", "Miss", "Madam", "Dame", "Lass",
NA
)
), stringsAsFactors = FALSE
)
expect_snapshot(
variant = "windows",
Expand Down

0 comments on commit e7e1e94

Please sign in to comment.