tests/testthat/test-are_rln_clock_models.R

context("are_rln_clock_models")

test_that("use", {

  rln <- create_rln_clock_model()
  strict <- create_strict_clock_model()

  testthat::expect_equal(
    are_rln_clock_models(
      list(rln, rln)
    ),
    c(TRUE, TRUE)
  )

  testthat::expect_equal(
    are_rln_clock_models(
      list(strict, rln, strict)
    ),
    c(FALSE, TRUE, FALSE)
  )

})
ropensci/beautier documentation built on March 12, 2019, 8:27 p.m.