diff options
-rw-r--r-- | tests/testament/tester.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim index b83eb668a..d5ff9b2c8 100644 --- a/tests/testament/tester.nim +++ b/tests/testament/tester.nim @@ -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 = |