Skip to content

Commit

Permalink
Expand testing
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Jul 15, 2024
1 parent 9ded4f4 commit bbc690e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-parse-expr.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ test_that("data calls must be very simple", {
})


test_that("parameter calls must be assigned to a symbol", {
expect_error(
parse_expr(quote(deriv(d) <- parameter()), NULL, NULL),
"Calls to 'parameter()' must be assigned to a symbol",
fixed = TRUE)
})


test_that("print not yet supported", {
expect_error(
parse_expr(quote(print(x)), NULL, NULL),
Expand Down

0 comments on commit bbc690e

Please sign in to comment.