Skip to content

Commit

Permalink
test warn_meta_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
larann901 committed Sep 25, 2024
1 parent 5b63381 commit d2f87d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-warn_meta_changes.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test_that('specific warnings are printed for consent_yesno and
slider_happy question changes', {


meta_data[meta_data$columnName == '"consent_yesno"',
meta_data[meta_data$columnName == '\"consent_yesno\"',
c('fullQuestion_mixed', 'typeQuestion_mixed')] <- 1

# Test for the specific warning related to the "consent_yesno" question
Expand All @@ -30,9 +30,9 @@ test_that('specific warnings are printed for consent_yesno and
regexp = "In question \"consent_yesno\" the following has changed: Question text, Type of question"
)

meta_data[meta_data$columnName == '"consent_yesno"',
meta_data[meta_data$columnName == '\"consent_yesno\"',
c('fullQuestion_mixed', 'typeQuestion_mixed')] <- 0
meta_data[meta_data$columnName == '"slider_happy"', 'typeAnswer_mixed'] <- 1
meta_data[meta_data$columnName == '\"slider_happy\"', 'typeAnswer_mixed'] <- 1

# Test for the specific warning related to the "slider_happy" question
expect_warning(
Expand Down

0 comments on commit d2f87d0

Please sign in to comment.