tests/testthat/test-colonist_species_type_to_str.R

test_that("use", {
  expect_equal(colonist_species_type_to_str("A"), "Anagenetic recolonist")
  expect_equal(colonist_species_type_to_str("C"), "Cladogenetic recolonist")
  expect_error(colonist_species_type_to_str(""))
  expect_error(colonist_species_type_to_str("B"))
  expect_error(colonist_species_type_to_str(c("A", "V")))
  expect_error(colonist_species_type_to_str(NA))
  expect_error(colonist_species_type_to_str(NULL))
  expect_error(colonist_species_type_to_str(Inf))
  expect_error(colonist_species_type_to_str(c()))
  expect_error(colonist_species_type_to_str(list()))
})
joshwlambert/DAISIEmainland documentation built on July 14, 2024, 5:40 p.m.