print.tinytest: Print a tinytest object

View source: R/expectations.R

format.tinytestR Documentation

Print a tinytest object

Description

Print a tinytest object

Usage

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

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

Arguments

x

A tinytest object

type

[logical] Toggle format type

...

passed to format.tinytest

Value

A character string

Examples

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")


tinytest documentation built on March 7, 2023, 7:43 p.m.