tester: make 'nimout' matching more robust against whitespace issues
This commit is contained in:
parent
6467e55ae8
commit
4846e4e452
1 changed files with 5 additions and 1 deletions
|
|
@ -64,7 +64,11 @@ let
|
||||||
|
|
||||||
var targets = {low(TTarget)..high(TTarget)}
|
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,
|
proc callCompiler(cmdTemplate, filename, options: string,
|
||||||
target: TTarget): TSpec =
|
target: TTarget): TSpec =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue