tinytest (version 1.4.1)

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, ...)

Value

A character string

Arguments

x

A tinytest object

type

[logical] Toggle format type

...

passed to format.tinytest

Examples

Run this code
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 DataLab