tests/testthat/test_perm.R

context("Permutation")

test_that("permutation lookup", {
  expect_true(perm_lookup(movies, "title", "man the she's"), movies$title[6947])
})


context("Spelling")

test_that("spelling error", {
  expect_true(spell_lookup(movies, "title", "she's the man"), movies$title[6947])
})
hnasif/movies documentation built on May 17, 2019, 4:36 p.m.