new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
19
tests/exception/tfinally.nim
Normal file
19
tests/exception/tfinally.nim
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
discard """
|
||||
file: "tfinally.nim"
|
||||
output: "came\nhere\n3"
|
||||
"""
|
||||
# Test return in try statement:
|
||||
|
||||
proc main: int =
|
||||
try:
|
||||
try:
|
||||
return 1
|
||||
finally:
|
||||
echo("came")
|
||||
return 2
|
||||
finally:
|
||||
echo("here")
|
||||
return 3
|
||||
|
||||
echo main() #OUT came here 3
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue