tests/testthat/test-anthrome_colors.R

test_that('anthrome colors work', {
  expect_length(anthrome_colors(), 21)
  expect_length(anthrome_colors('class'), 21)
  expect_length(anthrome_colors('level'), 7)
  expect_length(anthrome_colors('type'), 4)
  expect_error(anthrome_colors('test'))
  expect_named(anthrome_colors())
})
nick-gauthier/anthromes-12k documentation built on June 26, 2022, 3:21 p.m.