inst/tinytest/test_xnumber.R

library(tinytest)
xnumbers <- healthyAddress:::xnumbers
xnumber128 <- healthyAddress:::xnumber128
if (healthyAddress:::uint128_not_supported()) {
  exit_file("uint128_not_supported")
}

expect_equal(xnumber128("123/456 789 2000"), list(123, 456, 789, 2000))
expect_equal(xnumbers("123/456 789 2000")[[1]], 4)

Try the healthyAddress package in your browser

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

healthyAddress documentation built on April 12, 2025, 1:28 a.m.