From 9c5355c7e2d646153901fe30a1be5191bdd03c63 Mon Sep 17 00:00:00 2001 From: simonpcouch Date: Mon, 21 Oct 2024 07:55:24 -0700 Subject: [PATCH] update error class in snaps --- tests/testthat/_snaps/rows.md | 2 +- tests/testthat/_snaps/translate-sql-conditional.md | 6 +++--- tests/testthat/_snaps/verb-pivot-wider.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testthat/_snaps/rows.md b/tests/testthat/_snaps/rows.md index 5e32ce606..056421ecf 100644 --- a/tests/testthat/_snaps/rows.md +++ b/tests/testthat/_snaps/rows.md @@ -55,7 +55,7 @@ (expect_error(rows_insert(lf, lf, by = "x", conflict = "error", in_place = FALSE)) ) Output - + Error in `rows_insert()`: ! `conflict = "error"` isn't supported on database backends. i It must be "ignore" instead. diff --git a/tests/testthat/_snaps/translate-sql-conditional.md b/tests/testthat/_snaps/translate-sql-conditional.md index fdf87e0e9..4eba7f748 100644 --- a/tests/testthat/_snaps/translate-sql-conditional.md +++ b/tests/testthat/_snaps/translate-sql-conditional.md @@ -48,13 +48,13 @@ (expect_error(test_translate_sql(case_when(x == 1L ~ "yes", .ptype = character()))) ) Output - + Error in `case_when()`: ! Argument `.ptype` isn't supported on database backends. Code (expect_error(test_translate_sql(case_when(x == 1L ~ "yes", .size = 1)))) Output - + Error in `case_when()`: ! Argument `.size` isn't supported on database backends. @@ -122,7 +122,7 @@ Code (expect_error(test_translate_sql(case_match(x, 1 ~ 1, .ptype = integer())))) Output - + Error in `case_match()`: ! Argument `.ptype` isn't supported on database backends. diff --git a/tests/testthat/_snaps/verb-pivot-wider.md b/tests/testthat/_snaps/verb-pivot-wider.md index dc138fc92..d11cc5627 100644 --- a/tests/testthat/_snaps/verb-pivot-wider.md +++ b/tests/testthat/_snaps/verb-pivot-wider.md @@ -169,7 +169,7 @@ Code (expect_error(tidyr::pivot_wider(df, id_expand = TRUE))) Output - + Error in `tidyr::pivot_wider()`: ! `id_expand = TRUE` isn't supported on database backends. i It must be FALSE instead.