tests/testthat/test-animateSpectra.R

test_that("animateSpectra does not throw error", {
    sim <- project(NS_params, t_max = 2, t_save = 1, effort = 1)
    expect_error(animateSpectra(sim, species = c("Cod", "Haddock"),
                                time_range = c(1, 2),
                                wlim = c(1, 1000),
                                ylim = c(1e6, 1e9),
                                power = 1,
                                total = TRUE,
                                resource = TRUE), NA)
})
drfinlayscott/mizer documentation built on April 13, 2024, 9:16 a.m.