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
|
|
@ -8,8 +8,8 @@ type
|
|||
|
||||
var
|
||||
e: TE
|
||||
|
||||
|
||||
case e
|
||||
of A..D, B..C:
|
||||
of A..D, B..C:
|
||||
echo "redundant"
|
||||
else: nil
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ discard """
|
|||
|
||||
|
||||
|
||||
proc checkDuplicates(myval: int32): bool =
|
||||
proc checkDuplicates(myval: int32): bool =
|
||||
case myval
|
||||
of 0x7B:
|
||||
echo "this should not compile"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ of "will", "it", "finally", "be", "generated": discard
|
|||
var z = case i
|
||||
of 1..5, 8, 9: "aa"
|
||||
of 6, 7: "bb"
|
||||
elif x == "Ha":
|
||||
elif x == "Ha":
|
||||
"cc"
|
||||
elif x == "yyy":
|
||||
write(stdout, x)
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@ import strutils
|
|||
var x = 343
|
||||
|
||||
case stdin.readline.parseInt
|
||||
of 0:
|
||||
of 0:
|
||||
echo "most common case"
|
||||
of 1:
|
||||
of 1:
|
||||
{.linearScanEnd.}
|
||||
echo "second most common case"
|
||||
of 2: echo "unlikely: use branch table"
|
||||
else:
|
||||
else:
|
||||
echo "unlikely too: use branch table"
|
||||
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ case x
|
|||
of 23: echo "23"
|
||||
of 343: echo "343"
|
||||
of 21: echo "21"
|
||||
else:
|
||||
else:
|
||||
{.linearScanEnd.}
|
||||
echo "default"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue