printTestMessage: Print a Test with its Result

Description Usage Arguments Value Examples

View source: R/testMain.R

Description

Print a test with its result as a message and return the message as a character string

Usage

1
printTestMessage(testexpression, testresult, newline = TRUE)

Arguments

testexpression

text description of what was tested

testresult

boolean result (of length one) of the test

newline

if TRUE (default) a new line character is appended to the message shown.

Value

the message that was shown as a character string

Examples

1
2
printTestMessage("apple == apple", 1 == 1)
printTestMessage("apple == pear", 1 == 2)

KWB-R/kwb.test documentation built on Sept. 12, 2019, 3:41 a.m.