tests/testthat/test-function-hsTrim.R

test_that("hsTrim() works", {

  expect_identical(hsTrim("  a "), "a")
  expect_identical(hsTrim("  a    b "), "a b")
  expect_identical(hsTrim(" \ta \t b \t"), "a b")
})
KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.