Skip to content

Commit 97a9190

Browse files
tests
1 parent 1f74625 commit 97a9190

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/testthat/test-data-columns.R

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
test_that("an informative error msg results when there is no column indicating the matrix", {
2+
sir = "SPEC-sir.rds" |> test_cache_read()
3+
sir_sim = "SIM-sir_5_I.rds" |> test_cache_read()
4+
5+
set.seed(101)
6+
dd = sir_sim$report() |>
7+
## leaving out 'matrix' here on purpose
8+
select(time, value)
9+
10+
expect_error(
11+
mp_tmb_calibrator(spec = sir, data = dd),
12+
"Supplied data did not contain a column called"
13+
)
14+
})

0 commit comments

Comments
 (0)