Skip to content

Commit

Permalink
Add a test for all years appearing in output
Browse files Browse the repository at this point in the history
  • Loading branch information
bpbond committed Apr 3, 2022
1 parent 46f05b5 commit ded566e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test_wrapper.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ test_that("Basic hcore functionality works", {
expect_silent(run(hc, 2100))
expect_silent(run(hc))

# All years should appear in the output
out <- fetchvars(hc, dates = 1745:2300)
expect_equivalent(sort(unique(out$year)), 1745:2300)

hc <- shutdown(hc)
expect_false(isactive(hc))
})
Expand Down

1 comment on commit ded566e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Differences in Hector outputs

Hello, this is leeyabot! 🤖

The current pull request's outputs do not differ from 3.0.0 (0f2664f).

CML watermark

Please sign in to comment.