tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
parent
ac9c1cd6b9
commit
e80465dacf
372 changed files with 4486 additions and 4486 deletions
|
|
@ -21,7 +21,7 @@ try:
|
|||
stdout.write("E")
|
||||
stdout.write("C")
|
||||
raise newException(EsomeotherErr, "bla")
|
||||
finally:
|
||||
finally:
|
||||
echo "caught"
|
||||
|
||||
#OUT ECcaught
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ discard """
|
|||
"""
|
||||
# Test return in try statement:
|
||||
|
||||
proc main: int =
|
||||
proc main: int =
|
||||
try:
|
||||
try:
|
||||
return 1
|
||||
finally:
|
||||
echo("came")
|
||||
return 2
|
||||
finally:
|
||||
finally:
|
||||
echo("here")
|
||||
return 3
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ D'''
|
|||
"""
|
||||
# Test break in try statement:
|
||||
|
||||
proc main: int =
|
||||
proc main: int =
|
||||
try:
|
||||
block AB:
|
||||
try:
|
||||
|
|
@ -16,14 +16,14 @@ proc main: int =
|
|||
finally:
|
||||
echo("A")
|
||||
echo("skipped")
|
||||
finally:
|
||||
finally:
|
||||
block B:
|
||||
echo("B")
|
||||
echo("skipped")
|
||||
echo("C")
|
||||
finally:
|
||||
echo("D")
|
||||
|
||||
|
||||
discard main() #OUT ABCD
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ discard """
|
|||
"""
|
||||
# Test break in try statement:
|
||||
|
||||
proc main: bool =
|
||||
proc main: bool =
|
||||
while true:
|
||||
try:
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ proc test4() =
|
|||
discard
|
||||
|
||||
# Should cause unhandled exception error,
|
||||
# but could cause segmentation fault if
|
||||
# but could cause segmentation fault if
|
||||
# exceptions are not handled properly.
|
||||
test4()
|
||||
raise newException(OSError, "Problem")
|
||||
|
|
|
|||
|
|
@ -18,6 +18,6 @@ when true:
|
|||
genErrors("errssor!")
|
||||
except ESomething:
|
||||
echo("Error happened")
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ try:
|
|||
raise newException(ValueError, "")
|
||||
except OverflowError:
|
||||
echo("Error caught")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue