tests/testthat/test-isupper.R

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

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.