fixup! fixup! Separate the various parts of the error report with newlines

This commit is contained in:
Benjamin Schubert 2023-12-03 14:59:39 +00:00
parent 69e91bca87
commit 775e67af4a
1 changed files with 9 additions and 9 deletions

View File

@ -289,15 +289,15 @@ class TestApprox:
a, a,
b, b,
[ [
r" ", r"^ $",
r" comparison failed. Mismatched elements: 20 / 20:", r"^ comparison failed. Mismatched elements: 20 / 20:$",
rf" Max absolute difference: {SOME_FLOAT}", rf"^ Max absolute difference: {SOME_FLOAT}$",
rf" Max relative difference: {SOME_FLOAT}", rf"^ Max relative difference: {SOME_FLOAT}$",
r" Index \| Obtained\s+\| Expected", r"^ Index \| Obtained\s+\| Expected\s+$",
rf" \(0,\)\s+\| {SOME_FLOAT} \| {SOME_FLOAT} ± {SOME_FLOAT}", rf"^ \(0,\)\s+\| {SOME_FLOAT} \| {SOME_FLOAT} ± {SOME_FLOAT}e-{SOME_INT}$",
rf" \(1,\)\s+\| {SOME_FLOAT} \| {SOME_FLOAT} ± {SOME_FLOAT}...", rf"^ \(1,\)\s+\| {SOME_FLOAT} \| {SOME_FLOAT} ± {SOME_FLOAT}e-{SOME_INT}\.\.\.$",
"", "^ $",
rf"\s*...Full output truncated \({SOME_INT} lines hidden\), use '-vv' to show", rf"^ ...Full output truncated \({SOME_INT} lines hidden\), use '-vv' to show$",
], ],
verbosity_level=0, verbosity_level=0,
) )