From 29f88f55744e6935d5324dd333de11e7d4571f23 Mon Sep 17 00:00:00 2001 From: James McMahon Date: Thu, 14 Nov 2024 15:27:19 +0000 Subject: [PATCH] Fix tests Something must have changed with factors between v4.0.1 and now... --- tests/testthat/test-parse_row_filters.R | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-parse_row_filters.R b/tests/testthat/test-parse_row_filters.R index e64a81b..90558d5 100644 --- a/tests/testthat/test-parse_row_filters.R +++ b/tests/testthat/test-parse_row_filters.R @@ -14,7 +14,11 @@ test_that("throws error for bad types", { regexp = " must be a named .+? not a " ) expect_error( - parse_row_filters(c(x = factor(1))), + parse_row_filters(c(x = NA)), + regexp = " must be a named .+? not a " + ) + expect_error( + parse_row_filters(c(x = as.Date("2000-01-01"))), regexp = " must be a named .+? not a " ) })