testFuns

0th

Percentile

Store Functions for New vs. Reference Test Comparisons

testFuns contains the functions used to compare the results and side effects of running test expressions. “testFuns” objects can be used as the compare argument for unitizer_sect, thereby allowing you to specify different comparison functions for different aspects of test evaluation.

Details

The default comparison functions are as follows:

  • value: all_eq

  • conditions: all_eq

  • output: function(x, y) TRUE, i.e. not compared

  • message: function(x, y) TRUE, i.e. not compared as conditions should be capturing warnings/errors

  • aborted: function(x, y) TRUE, i.e. not compared as conditions should also be capturing this implicitly

See Also

unitizer_sect for more relevant usage examples, all_eq

Aliases
  • testFuns
Examples
# NOT RUN {
# use `identical` instead of `all.equal` to compare values
testFuns(value=identical)
# }
Documentation reproduced from package unitizer, version 1.4.8, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.