tests/testthat/test-idf_show_categories.R

source(file = "../load_testdata.R")



test_that("returns a vector and works for nested and unnested", {
  expect_vector(idf_show_categories(test_docs))
  expect_vector(idf_show_categories(test_resources))
})


test_that("same for nested and unnested", {
  expect_equal(idf_show_categories(test_docs),
               idf_show_categories(test_resources))
})
lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.