Skip to content

Commit 34d87bf

Browse files
committed
tests for glue fallback
1 parent 9250d03 commit 34d87bf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/testthat/test-glue_label_brief.R

+15
Original file line numberDiff line numberDiff line change
@@ -281,3 +281,18 @@ test_that("glue works for brief too", {
281281
)
282282

283283
})
284+
285+
test_that("safe fallback when glue fails (#598)", {
286+
287+
expect_no_error({
288+
agent <- create_agent(small_table) %>%
289+
col_vals_regex(b, "^\\d{1,2}") %>%
290+
interrogate()
291+
})
292+
293+
expect_identical(
294+
agent$validation_set$brief,
295+
generate_autobriefs(agent, "b", NULL, "^\\d{1,2}", "col_vals_regex"),
296+
)
297+
298+
})

0 commit comments

Comments
 (0)