tests/testthat/test-make_dict.R

test_that("make customized dictionary", {
  expect_equal(make_dict(c("a","a","b")),
               data.table(keyword = unique(c("a","a","b")),
                          key = "keyword"))
})
hope-data-science/akc documentation built on Feb. 8, 2023, 8:49 a.m.