From b7c73909ca91e00757267d6e1b904acd884c5050 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Fri, 10 Jul 2015 21:18:45 -0600 Subject: [PATCH] Updated readme with some useful info. --- README.md | 2 ++ test.nim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 28da2a3..30ecc93 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ Test methods/procs to be run are prefixed with "test" in the method/proc name. T For each suite method/proc, an implicit variable called "self" is added. This lets you access the testSuite in an OO kind of way. +On failure, the macro gathers names and values of *all* arguments and functions and prints them out. It's really useful for debugging! + ### Installation Install with nimble! diff --git a/test.nim b/test.nim index af2b2dc..2c51296 100644 --- a/test.nim +++ b/test.nim @@ -64,7 +64,7 @@ testSuite TestInherit of UnitTestsNew: proc raisesOs()= # This proc won't be invoked as a test - raise newException(Exception, "Oh no! OS malfunction!") + raise newException(SystemError, "Oh no! OS malfunction!") method testRaises()=