clearLog() # Clear the svUnit log
# Two correct tests
(checkTrue(1 < 2))
(checkException(log("a")))
errorLog() # Nothing, because there is no error
if (FALSE) {
(checkTrue(1 > 2)) # This test fails
lastTest() # Print results of last test
errorLog() # Stop and summarize the tests run so far
}
clearLog()
Run the code above in your browser using DataLab