Skip to content

Commit

Permalink
Adding first trivial test for newCommunityParams(). Need many more.
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavdelius committed Aug 20, 2024
1 parent dc305b4 commit 0ae7d04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-wrapper_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,9 @@ test_that("Scaling model is set up correctly", {
bm <- getBiomass(sim)
expect_lt(max(abs(bm[1, ] - bm[6, ])), 1.3e-4)
})

# Community ----
test_that("newCommunityParams works", {
newCommunityParams(z0 = 0.05, f0 = 0.5) |>
expect_warning(NA)
})

0 comments on commit 0ae7d04

Please sign in to comment.