Skip to content

Commit

Permalink
#469 fix_assert_list_element: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bundfussr committed Oct 10, 2024
1 parent 36c31df commit 3f90c76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/_snaps/assertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,9 @@
Code
assert_list_element(list(list(var = expr(DTHDT), val = 1), list(var = expr(
EOSDT), val = -1), list(var = expr(EOSDT), val = -2)), element = "val",
condition = val %in% valid_vals, valid_vals = c(0, 1), message_text = "List element {.val val} must one of {.val {valid_vals}} in argument {.arg {arg_name}}.",
arg_name = "input")
condition = val %in% valid_vals, valid_vals = c(0, 1), message_text = paste(
"List element {.val val} must one of {.val {valid_vals}} in argument",
"{.arg {arg_name}}."), arg_name = "input")
Condition
Error:
! List element "val" must one of 0 and 1 in argument `input`.
Expand Down

0 comments on commit 3f90c76

Please sign in to comment.