tinytest (version 1.1.0)

format.tinytest: Print a tinytest object

Description

Print a tinytest object

Usage

# S3 method for tinytest
format(x, type = c("long", "short"), ...)

# S3 method for tinytest print(x, ...)

Arguments

x

A tinytest object

type

[logical] Toggle format type

...

passed to format.tinytest

Value

A character string

Examples

Run this code
# NOT RUN {
tt <- expect_equal(1+1, 3)
format(tt,"long")
format(tt,"short")
print(expect_equal(1+1, 2))
print(expect_equal(1+1, 3), type="long")

# }

Run the code above in your browser using DataCamp Workspace