1 # Functions to assert that conditions are true or false in R unit tests
4 # Functions to assert that a condition is true or false [to be extended]
5 assertTrue = function(condition, message, context="") {
7 cat("Failure: ", message, sep=\'\')
8 if (context != "") cat(" [",context,"]")
13 assertFalse = function(condition, message, context="") {
14 assertTrue(!condition, message, context)