tinytest {tinytest} | R Documentation |
Each individual test in the package generates a tinytest
object.
A tinytest
object behaves like a logical
scalar, but
it is endowed with attributes allowing to trace back where the test
was run.
tinytest(result, call, diff = NA_character_, short = NA_character_, file = NA_character_, fst = NA_integer_, lst = NA_integer_, ...)
result |
|
call |
|
diff |
|
short |
|
file |
|
fst |
|
lst |
|
A tinytest
object.
tt <- expect_equal(1+1, 2) if (isTRUE(tt)){ print("w00p w00p!") } else { print("Oh no!") }