tests/testthat/test-clean_strings.R

context("test-clean_strings")

text_in <- c("Hello", "_hello_", "Hel_lo", "dash-dash", "per.iod.")

text_out <- c("hello", "hello", "hel_lo", "dash_dash", "per_iod")

test_that("multiplication works", {
  expect_equal(clean_strings(text_in), text_out)
})
Kidapt/keda documentation built on Nov. 23, 2019, 3:35 a.m.