hadley/test_that — Issue #33: Documentation example for tolerance
Author: wibeasley
Created: 2012-01-23 23:17:17+00:00
State: open

Some users might benefit if you demonstrate how to include a tolerance. Somewhere like the 'equals' help page, include an examples like:

#Test the ABSOLUTE difference is within .002
expect_equal(object=10.01, expected=10, tolerance=.002, scale=1)

#Test the RELATIVE difference is within .002
expect_equal(object=10.01, expected=10, tolerance=.002, scale=NULL)

By the way, I really like using this package.