fix test failures in subexes due to missing trailing whitespace

FAIL: subexes.nim
Test "lib/pure/subexes.nim" in category "lib"
Failure: reExitcodesDiffer
Expected:
exitcode: 0
Gotten:
exitcode: 1
Output:
Traceback (most recent call last)
subexes.nim(385)         subexes
system.nim(3335)         raiseAssert
system.nim(2531)         sysFatal
Error: unhandled exception: "$#($\', \'10c\'\x0A    \'{#..})" % ["doAssert", "longishA", "longish"] ==
This commit is contained in:
Aman Gupta
2015-10-01 11:42:11 -07:00
parent 61ace9e394
commit 18882d006b

View File

@@ -384,15 +384,15 @@ when isMainModule:
doAssert "$#($', '10c'\n '{#..})" % ["doAssert", "longishA", "longish"] ==
"""doAssert(
longishA,
longishA,
longish)"""
assert "type MyEnum* = enum\n $', '2i'\n '{..}" % ["fieldA",
"fieldB", "FiledClkad", "fieldD", "fieldE", "longishFieldName"] ==
strutils.unindent """
type MyEnum* = enum
fieldA, fieldB,
FiledClkad, fieldD,
fieldA, fieldB,
FiledClkad, fieldD,
fieldE, longishFieldName"""
doAssert subex"$1($', '{2..})" % ["f", "a", "b", "c"] == "f(a, b, c)"
@@ -406,7 +406,7 @@ when isMainModule:
strutils.unindent """
type
Enum = enum
fieldNameA, fieldNameB, fieldNameC,
fieldNameA, fieldNameB, fieldNameC,
fieldNameD"""