tests/testthat/test-sentenceCase.R

test_that("Vectorized", {
    expect_identical(
        object = sentenceCase(
            object = c(
                "the quick Brown fox",
                "using AIC for model selection",
                "NASA"
            )
        ),
        expected = c(
            "The quick brown fox",
            "Using AIC for model selection",
            "NASA"
        )
    )
})
acidgenomics/r-syntactic documentation built on Oct. 30, 2023, 3:08 a.m.