tests/testthat/test-islower.R

test_that("strs_islower works", {
  expect_true(strs_islower("words"))
  expect_true(strs_islower("hello "))
  expect_false(strs_islower("WORDS"))
  expect_false(strs_islower(".:'"))
})

Try the strs package in your browser

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

strs documentation built on Sept. 11, 2024, 6:44 p.m.