diff --git a/tests/testthat/_snaps/ard_categorical.survey.design.md b/tests/testthat/_snaps/ard_categorical.survey.design.md index 7df1850dd..be94e230b 100644 --- a/tests/testthat/_snaps/ard_categorical.survey.design.md +++ b/tests/testthat/_snaps/ard_categorical.survey.design.md @@ -4,8 +4,9 @@ ard_categorical(svy_titanic, variables = c(Class, Age), by = Survived, denominator = "row") Condition - Error in `ard_categorical()`: - ! Column "Class" is a factor with NA levels, which are not allowed. + Error in `FUN()`: + ! Column "Class" is all missing and cannot be tabulated. + i Only columns of class and can be tabulated when all values are missing. --- @@ -13,8 +14,9 @@ ard_categorical(svy_titanic, variables = c(Class, Age), by = Survived, denominator = "column") Condition - Error in `ard_categorical()`: - ! Column "Class" is a factor with NA levels, which are not allowed. + Error in `FUN()`: + ! Column "Class" is all missing and cannot be tabulated. + i Only columns of class and can be tabulated when all values are missing. --- @@ -22,6 +24,7 @@ ard_categorical(svy_titanic, variables = c(Class, Age), by = Survived, denominator = "cell") Condition - Error in `ard_categorical()`: - ! Column "Class" is a factor with NA levels, which are not allowed. + Error in `FUN()`: + ! Column "Class" is all missing and cannot be tabulated. + i Only columns of class and can be tabulated when all values are missing. diff --git a/tests/testthat/test-ard_categorical.survey.design.R b/tests/testthat/test-ard_categorical.survey.design.R index c02083048..7ba6333e9 100644 --- a/tests/testthat/test-ard_categorical.survey.design.R +++ b/tests/testthat/test-ard_categorical.survey.design.R @@ -424,7 +424,6 @@ test_that("ard_categorical.survey.design() returns an error when variables have # row denom svy_titanic$variables$Class <- NA - svy_titanic$variables$Class <- fct_na_value_to_level(svy_titanic$variables$Class) expect_snapshot( ard_categorical(