summary refs log tree commit diff stats
path: root/tests/tassert.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tassert.nim')
-rwxr-xr-xtests/tassert.nim16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/tassert.nim b/tests/tassert.nim
deleted file mode 100755
index 1eff23502..000000000
--- a/tests/tassert.nim
+++ /dev/null
@@ -1,16 +0,0 @@
-# test assert and exception handling

-

-proc callB() = assert(False)

-proc callA() = callB()

-proc callC() = callA()

-

-try:

-  callC()

-except EAssertionFailed:

-  write(stdout, "assertion failure!\n")

-except:

-  write(stdout, "unknown exception!\n")

-finally:

-  system.write(stdout, "this shall be always written\n")

-

-assert(false)