Updated readme with some useful info.
This commit is contained in:
parent
095035aa1d
commit
b7c73909ca
2 changed files with 3 additions and 1 deletions
|
|
@ -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!
|
||||
|
|
|
|||
2
test.nim
2
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()=
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue