too many changes to list
This commit is contained in:
parent
916c25f9a7
commit
07d5a8085b
200 changed files with 24344 additions and 17809 deletions
|
|
@ -1,8 +1,5 @@
|
|||
# test assert and exception handling
|
||||
|
||||
import
|
||||
io
|
||||
|
||||
proc callB() = assert(False)
|
||||
proc callA() = callB()
|
||||
proc callC() = callA()
|
||||
|
|
@ -10,10 +7,10 @@ proc callC() = callA()
|
|||
try:
|
||||
callC()
|
||||
except EAssertionFailed:
|
||||
io.write(stdout, "assertion failure!\n")
|
||||
write(stdout, "assertion failure!\n")
|
||||
except:
|
||||
io.write(stdout, "unknown exception!\n")
|
||||
write(stdout, "unknown exception!\n")
|
||||
finally:
|
||||
io.write(stdout, "this shall be always written\n")
|
||||
system.write(stdout, "this shall be always written\n")
|
||||
|
||||
assert(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue