inst/tinytest/test_parse.R

library(RcppFastFloat)

expect_equal(parseExample("3.1416 xyz", FALSE), 3.1416)
expect_error(parseExample("abc 3.1416 xyz"))
expect_error(parseExample("abc xyz"))

Try the RcppFastFloat package in your browser

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

RcppFastFloat documentation built on April 3, 2025, 9:39 p.m.