Skip to content

Commit

Permalink
Update tests in test-sir.R
Browse files Browse the repository at this point in the history
  • Loading branch information
apulsipher committed Nov 13, 2024
1 parent 4cebbf4 commit b03a1ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions inst/tinytest/test-sir.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ sir_0 <- ModelSIR(
expect_inherits(sir_0,"epiworld_sir")
expect_inherits(sir_0,"epiworld_model")
# Check can't plot before model is run
# TODO: Is this actually expected behavior?
expect_error(plot(sir_0))
expect_warning(expect_error(plot(sir_0)))

expect_silent(agents_smallworld(
sir_0,
Expand All @@ -30,8 +29,7 @@ queuing_off(sir_0)
verbose_off(sir_0)
run(sir_0, ndays = 50, seed = 1912)

# Check plots without errors or warnings
# TODO: Fix this check, it produces warnings but succeeds
# Check plots without issue after running model
expect_silent(plot(sir_0))

tmat_0 <- get_transition_probability(sir_0)
Expand Down

0 comments on commit b03a1ca

Please sign in to comment.