From d2f87d0af6318895e56c6457a2570925bf240e38 Mon Sep 17 00:00:00 2001 From: larann901 Date: Wed, 25 Sep 2024 21:42:58 +0200 Subject: [PATCH] test warn_meta_changes --- tests/testthat/test-warn_meta_changes.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testthat/test-warn_meta_changes.R b/tests/testthat/test-warn_meta_changes.R index e87a7a7..5156921 100644 --- a/tests/testthat/test-warn_meta_changes.R +++ b/tests/testthat/test-warn_meta_changes.R @@ -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 @@ -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(