tests/testthat/test-stylest_fit_speaker.R

library(stylest)

test_that("invalid smooth raises error", {
  expect_error(stylest_select_vocab(novels_excerpts, novels_excerpts$author, smooth = -1),
               "smooth value must be greater than or equal to 0")
}
)
leslie-huang/stylest documentation built on March 17, 2021, 7:39 a.m.