mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-03 04:24:45 +00:00
tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
@@ -26,16 +26,16 @@ when true:
|
||||
result.bar = "bar"
|
||||
|
||||
echo($newfoo())
|
||||
|
||||
|
||||
proc retInt(x, y: int): int =
|
||||
|
||||
proc retInt(x, y: int): int =
|
||||
if (var yy = 0; yy != 0):
|
||||
echo yy
|
||||
else:
|
||||
echo(try: parseInt("1244") except EINvalidValue: -1)
|
||||
result = case x
|
||||
of 23: 3
|
||||
of 64:
|
||||
of 64:
|
||||
case y
|
||||
of 1: 2
|
||||
of 2: 3
|
||||
@@ -79,7 +79,7 @@ semiProblem()
|
||||
|
||||
# bug #844
|
||||
|
||||
import json
|
||||
import json
|
||||
proc parseResponse(): PJsonNode =
|
||||
result = % { "key1": % { "key2": % "value" } }
|
||||
for key, val in result["key1"]:
|
||||
|
||||
Reference in New Issue
Block a user