summary refs log tree commit diff stats
path: root/tests/accept/run/tassert.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept/run/tassert.nim')
-rwxr-xr-xtests/accept/run/tassert.nim16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/accept/run/tassert.nim b/tests/accept/run/tassert.nim
deleted file mode 100755
index 9fd18e9bd..000000000
--- a/tests/accept/run/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!")

-except:

-  write(stdout, "unknown exception!")

-finally:

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

-

-assert(false) #OUT assertion failure!this shall be always written