tests/testthat/test-state.R

# Unit tests for the state

test_that("the default constructor works", {
  new_state <- villager::village_state$new()
  testthat::expect_equal(new_state$state, NULL)
})

Try the villager package in your browser

Any scripts or data that you put into this service are public.

villager documentation built on May 29, 2024, 2:12 a.m.