summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-08-31 21:39:24 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-08-31 21:39:24 +0200
commit686a9ae66afca62e0545eccc87f081de972c6fdd (patch)
tree7e28f748c0cc29b807b1efaead659b7c87098239
parenta08fb61da974e7384d63fd2e08f60c97594a01c6 (diff)
downloadNim-686a9ae66afca62e0545eccc87f081de972c6fdd.tar.gz
tester: better error message comparisons
-rw-r--r--tests/testament/tester.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim
index d5ff9b2c8..b65814534 100644
--- a/tests/testament/tester.nim
+++ b/tests/testament/tester.nim
@@ -67,8 +67,8 @@ var targets = {low(TTarget)..high(TTarget)}
 proc normalizeMsg(s: string): string =
   result = newStringOfCap(s.len+1)
   for x in splitLines(s):
+    if result.len > 0: result.add '\L'
     result.add x.strip
-    result.add '\L'
 
 proc callCompiler(cmdTemplate, filename, options: string,
                   target: TTarget): TSpec =