tests/testthat/test-vocab.R

test_that("the vocab handler works", {
  definitely_not_a_vocab <- 1.5
  testthat::expect_error(.process_mp_vocab(definitely_not_a_vocab),
                         "Unsupported vocabulary")
})

Try the morphemepiece package in your browser

Any scripts or data that you put into this service are public.

morphemepiece documentation built on April 16, 2022, 5:05 p.m.