tests/testthat/test-word.R

context("test-word-functions")

test_that("word functions work", {

  # expect minimal output
  expect_equal(rx_word() %>% as.character(), "\\w+")
  expect_equal(rx_word_char() %>% as.character(), "\\w")
  expect_equal(rx_word_edge() %>% as.character(), "\\b")

})

Try the RVerbalExpressions package in your browser

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

RVerbalExpressions documentation built on May 29, 2024, 6:47 a.m.