tests/testthat/test-plot_mainland.R

test_that("minimal example use", {
  set.seed(
    1,
    kind = "Mersenne-Twister",
    normal.kind = "Inversion",
    sample.kind = "Rejection"
  )
  mainland <- sim_mainland(
    total_time = 1,
    m = 2,
    mainland_ex = 1
  )

  plot_mainland(mainland)
})

test_that("interesting example", {
  set.seed(
    4,
    kind = "Mersenne-Twister",
    normal.kind = "Inversion",
    sample.kind = "Rejection"
  )
  mainland <- sim_mainland(
    total_time = 1,
    m = 4,
    mainland_ex = 1
  )

  plot_mainland(mainland)
})
joshwlambert/DAISIEmainland documentation built on July 14, 2024, 5:40 p.m.