Add a blank line after failed inline expectations

This commit is contained in:
Richard Feldman 2022-11-16 23:10:53 -05:00
parent 0920fb4227
commit 2f54e46909
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
2 changed files with 9 additions and 6 deletions

View file

@ -182,7 +182,8 @@ mod test {
// changes between test runs
let p = actual.bytes().position(|c| c == b'\n').unwrap();
let (_, x) = actual.split_at(p);
let x = x.trim_start();
let x = x.trim();
let expected = expected.trim_end();
if x != expected {
println!("{}", x);
@ -856,14 +857,14 @@ mod test {
First Str U8,
Next (List { item: Str, rest: NonEmpty }),
]
expect
nonEmpty =
a = "abcdefgh"
b = @NonEmpty (First "ijkl" 67u8)
c = Next [{ item: a, rest: b }]
@NonEmpty c
when nonEmpty is
_ -> Bool.false
"#
@ -871,7 +872,7 @@ mod test {
indoc!(
r#"
This expectation failed:
8> expect
9> nonEmpty =
10> a = "abcdefgh"
@ -881,9 +882,9 @@ mod test {
14>
15> when nonEmpty is
16> _ -> Bool.false
When it failed, these variables had these values:
nonEmpty : NonEmpty
nonEmpty = @NonEmpty (Next [{ item: "abcdefgh", rest: @NonEmpty (First "ijkl" 67) }])
"#