unit separator (#17730)

* use the ASCII Unit Separator so that error messages can be handled precisely by the tooling
* updated testament
This commit is contained in:
Andreas Rumpf 2021-04-20 16:30:17 +02:00 • committed by GitHub
commit 0b116310bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 55 additions and 39 deletions

View file

@ -235,7 +235,7 @@ tests/newconfig/bar/mfoo.nims""".splitLines
var expected = ""
for a in files:
let b = dir / a
expected.add &"Hint: used config file '{b}' [Conf]\n"
expected.add &"Hint: used config file '{b}' [Conf]\31\n"
doAssert outp.endsWith expected, outp & "\n" & expected
block: # mfoo2.customext
@ -243,7 +243,7 @@ tests/newconfig/bar/mfoo.nims""".splitLines
let cmd = fmt"{nim} e --hint:conf {filename}"
let (outp, exitCode) = execCmdEx(cmd, options = {poStdErrToStdOut})
doAssert exitCode == 0
var expected = &"Hint: used config file '{filename}' [Conf]\n"
var expected = &"Hint: used config file '{filename}' [Conf]\31\n"
doAssert outp.endsWith "123" & "\n" & expected