Skip to content

Commit

Permalink
Don't check for match in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Mar 21, 2024
1 parent 86eefbd commit 97248a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-parse-block.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ test_that("@json parameters work", {
expect_block_fn("#' @serializer json list ( auto_unbox = TRUE , na = 'string' ) ", serializer_json(auto_unbox = TRUE, na = 'string'))


expect_block_error("#' @serializer json list(na = 'string'", "unexpected end of input")
expect_block_error("#' @serializer json list(na = 'string'")
expect_block_error("#' @json(na = 'string'", "must be surrounded by parentheses")
expect_block_error("#' @json (na = 'string'", "must be surrounded by parentheses")
expect_block_error("#' @json ( na = 'string'", "must be surrounded by parentheses")
Expand Down

0 comments on commit 97248a9

Please sign in to comment.