From dcfaab073780c7c3750945bde6150d33a2d82bdc Mon Sep 17 00:00:00 2001 From: Shiyu Chen Date: Thu, 14 Dec 2023 18:10:56 +0000 Subject: [PATCH] Typo corrections in test --- tests/testthat/test-apply_conditional_format.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testthat/test-apply_conditional_format.R b/tests/testthat/test-apply_conditional_format.R index a2b2f928..6740d04d 100644 --- a/tests/testthat/test-apply_conditional_format.R +++ b/tests/testthat/test-apply_conditional_format.R @@ -4,17 +4,17 @@ test_string2 <- c(" 0 ( 0.0%)", " 8 ( 9.3%)", "78 (90.7%) [ 5]", "12", "Howdy ya test_that("Test input validation and warning generation", { expect_error( apply_conditional_format(c(1), 2, x == 0, "(<1%)", full_string=TRUE), - "Paramter `string`" + "Parameter `string`" ) expect_error( apply_conditional_format(test_string1, "bad", x == 0, "(<1%)", full_string=TRUE), - "Paramter `format_group`" + "Parameter `format_group`" ) expect_error( apply_conditional_format(test_string1, 1.1, x == 0, "(<1%)", full_string=TRUE), - "Paramter `format_group`" + "Parameter `format_group`" ) expect_error( @@ -24,12 +24,12 @@ test_that("Test input validation and warning generation", { expect_error( apply_conditional_format(test_string1, 2, x == 0, 1, full_string=TRUE), - "Paramter `replacement" + "Parameter `replacement" ) expect_error( apply_conditional_format(test_string1, 2, x == 0, "(<1%)", full_string="TRUE"), - "Paramter `full_string`" + "Parameter `full_string`" ) expect_warning(