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 Oct. 10, 2021, 1:10 a.m.