tests: Trim .nim files trailing whitespace

via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
Adam Strzelecki 2015-09-04 23:04:32 +02:00
commit e80465dacf
372 changed files with 4486 additions and 4486 deletions

View file

@ -21,7 +21,7 @@ try:
stdout.write("E")
stdout.write("C")
raise newException(EsomeotherErr, "bla")
finally:
finally:
echo "caught"
#OUT ECcaught

View file

@ -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

View file

@ -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

View file

@ -4,7 +4,7 @@ discard """
"""
# Test break in try statement:
proc main: bool =
proc main: bool =
while true:
try:
return true

View file

@ -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")

View file

@ -18,6 +18,6 @@ when true:
genErrors("errssor!")
except ESomething:
echo("Error happened")

View file

@ -7,7 +7,7 @@ try:
raise newException(ValueError, "")
except OverflowError:
echo("Error caught")