mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Add a blank line after failed inline expectations
This commit is contained in:
parent
0920fb4227
commit
2f54e46909
2 changed files with 9 additions and 6 deletions
|
@ -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) }])
|
||||
"#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue