diff options
author | Araq <rumpf_a@web.de> | 2011-11-12 01:21:10 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-12 01:21:10 +0100 |
commit | 3b6d831549d5e5214a1712605e7b375444ad342f (patch) | |
tree | e163ea55583380d01604594a302db131ebd12f6b /tests/accept | |
parent | 8fc15ca0d5b46f1ecd3bd46f201f4ede3225be30 (diff) | |
parent | 032ff877801ba6c9c6e40a4a1bbea25fe4961559 (diff) | |
download | Nim-3b6d831549d5e5214a1712605e7b375444ad342f.tar.gz |
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'tests/accept')
-rw-r--r-- | tests/accept/run/tunit.nim | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tests/accept/run/tunit.nim b/tests/accept/run/tunit.nim deleted file mode 100644 index d0e975119..000000000 --- a/tests/accept/run/tunit.nim +++ /dev/null @@ -1,47 +0,0 @@ -import - unittest, macros - -var - a = 1 - b = 22 - c = 1 - d = 3 - -suite "my suite": - setup: - echo "suite setup" - var testVar = "from setup" - - teardown: - echo "suite teardown" - - test "first suite test": - testVar = "modified" - echo "test var: " & testVar - check a > b - - test "second suite test": - echo "test var: " & testVar - -proc foo: bool = - echo "running foo" - return true - -proc err = - raise newException(EArithmetic, "some exception") - -test "final test": - echo "inside suite-less test" - - check: - a == c - foo() - d > 10 - -test "arithmetic failure": - expect(EArithmetic): - err() - - expect(EArithmetic, ESystem): - discard foo() - |