mirror of https://github.com/zkat/miette.git
tests(graphical): update missed tests
This commit is contained in:
parent
67b53641ef
commit
211f022501
|
|
@ -1959,7 +1959,8 @@ fn syntax_highlighter() {
|
||||||
GraphicalReportHandler::new_themed(GraphicalTheme::unicode())
|
GraphicalReportHandler::new_themed(GraphicalTheme::unicode())
|
||||||
.render_report(&mut out, &err)
|
.render_report(&mut out, &err)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let expected = r#" × This is an error
|
let expected = r#"
|
||||||
|
× This is an error
|
||||||
╭─[hello_world:2:5]
|
╭─[hello_world:2:5]
|
||||||
1 │ fn main() {
|
1 │ fn main() {
|
||||||
2 │ println!("Hello, World!");
|
2 │ println!("Hello, World!");
|
||||||
|
|
@ -2013,7 +2014,8 @@ fn syntax_highlighter_on_real_file() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let expected = format!(
|
let expected = format!(
|
||||||
r#" × This is an error
|
r#"
|
||||||
|
× This is an error
|
||||||
╭─[{filename}:{l2}:{CO}]
|
╭─[{filename}:{l2}:{CO}]
|
||||||
{l1} │
|
{l1} │
|
||||||
{l2} │ let (filename, line) = (file!(), line!() as usize);
|
{l2} │ let (filename, line) = (file!(), line!() as usize);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue