tests/testthat/test-f_comma.R

context("Checking f_comma")

test_that("f_comma has the correct number of digits and commas",{

    expect_true(nchar(f_comma(123456789)) == 11)

})

Try the numform package in your browser

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

numform documentation built on May 2, 2019, 6:31 a.m.