From bbc690e791a1f59c3f6132b2e085f8a204864f77 Mon Sep 17 00:00:00 2001 From: Rich FitzJohn Date: Mon, 15 Jul 2024 16:15:18 +0100 Subject: [PATCH] Expand testing --- tests/testthat/test-parse-expr.R | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/testthat/test-parse-expr.R b/tests/testthat/test-parse-expr.R index 0b41877..e47799a 100644 --- a/tests/testthat/test-parse-expr.R +++ b/tests/testthat/test-parse-expr.R @@ -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),