mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
tester: make 'nimout' matching more robust against whitespace issues
This commit is contained in:
@@ -64,7 +64,11 @@ let
|
||||
|
||||
var targets = {low(TTarget)..high(TTarget)}
|
||||
|
||||
proc normalizeMsg(s: string): string = s.strip.replace("\C\L", "\L")
|
||||
proc normalizeMsg(s: string): string =
|
||||
result = newStringOfCap(s.len+1)
|
||||
for x in splitLines(s):
|
||||
result.add x.strip
|
||||
result.add '\L'
|
||||
|
||||
proc callCompiler(cmdTemplate, filename, options: string,
|
||||
target: TTarget): TSpec =
|
||||
|
||||
Reference in New Issue
Block a user