tests/is.twl06.word-tests.R

library(testthat)
library(ScrabbleScore)

#no sense in testing every word, just setting up framework for future bugs
test_that("is.twl06.word return TRUE for words in the list and FALSE for those not",{
  expect_true(is.twl06.word("zzz"))
  expect_false(is.twl06.word("zzzz"))
  
})

Try the ScrabbleScore package in your browser

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

ScrabbleScore documentation built on May 2, 2019, 2:01 p.m.