From 095035aa1d45eda7931df28508b17bc48aeefeb6 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Fri, 10 Jul 2015 21:13:06 -0600 Subject: [PATCH] Updated readme with new test results. --- README.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 31fb064..28da2a3 100644 --- a/README.md +++ b/README.md @@ -142,9 +142,9 @@ is this: Location: test.nim; line 59 [Failed] testRaises - Condition: checkRaises(self.raisesOs()) + Condition: checkRaises(OSError, self.raisesOs()) Where: - self.raisesOs() -> not equal to OSError + self.raisesOs() -> Exception Location: test.nim; line 72 @@ -173,15 +173,27 @@ is this: Location: test.nim; line 59 [Failed] testRaises - Condition: checkRaises(self.raisesOs()) + Condition: checkRaises(OSError, self.raisesOs()) Where: - self.raisesOs() -> not equal to OSError + self.raisesOs() -> Exception Location: test.nim; line 72 [OK] testTestObj [OK] testNewObj +[Failed] testComplex + Condition: check(self.doStuff(a, s) == "5stuff" and self.doStuff(a, self.doStuff(a, self.doStuff(y, s))) == "something?") + Where: + self.doStuff(a, s) -> 5stuff + a -> 5 + self.doStuff(a, self.doStuff(a, self.doStuff(y, s))) -> 5545stuff + y -> 45 + s -> stuff + self.doStuff(y, s) -> 45stuff + self.doStuff(a, self.doStuff(y, s)) -> 545stuff + Location: test.nim; line 134 -[3/7] tests passed for MoreInheritance. ---------------------------------------- + +[3/8] tests passed for MoreInheritance. ---------------------------------------- ``` Notice that on failure, the test runner gives some useful information about the test in question. This is useful for determining why the test failed.