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
commit 18882d006b

View file

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