mirror of https://github.com/zkat/miette.git
Update tests for different newline printing
This commit is contained in:
parent
54ede01862
commit
2b9b6af79e
|
|
@ -806,6 +806,7 @@ fn related() -> Result<(), MietteError> {
|
||||||
|
|
||||||
Error: oops::my::bad
|
Error: oops::my::bad
|
||||||
|
|
||||||
|
|
||||||
× oops!
|
× oops!
|
||||||
╭─[bad_file.rs:1:1]
|
╭─[bad_file.rs:1:1]
|
||||||
1 │ source
|
1 │ source
|
||||||
|
|
@ -868,6 +869,7 @@ fn related_source_code_propagation() -> Result<(), MietteError> {
|
||||||
|
|
||||||
Error: oops::my::bad
|
Error: oops::my::bad
|
||||||
|
|
||||||
|
|
||||||
× oops!
|
× oops!
|
||||||
╭─[bad_file.rs:1:1]
|
╭─[bad_file.rs:1:1]
|
||||||
1 │ source
|
1 │ source
|
||||||
|
|
@ -900,8 +902,7 @@ fn zero_length_eol_span() {
|
||||||
let out = fmt_report(err.into());
|
let out = fmt_report(err.into());
|
||||||
println!("Error: {}", out);
|
println!("Error: {}", out);
|
||||||
|
|
||||||
let expected = r#"
|
let expected = r#" × oops!
|
||||||
× oops!
|
|
||||||
╭─[issue:1:1]
|
╭─[issue:1:1]
|
||||||
1 │ this is the first line
|
1 │ this is the first line
|
||||||
2 │ this is the second line
|
2 │ this is the second line
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue