tests/testthat/test-remove_whitespace.R

library(queryr)
context("remove_whitespace()")

test_that("Produces the correct output.", {
  expect_equal(remove_whitespace("  this is  \n  too  much\t white \t\t  \n\n\n  space    "), "this is too much white space")
})

test_that("Produces the correct output type.", {
  expect_is(remove_whitespace("  this is    too  much   white  space    "), "character")
})

test_that("Produces the correct errors.", {
})
paulhendricks/queryr documentation built on May 24, 2019, 8:43 p.m.