Skip to content

Commit

Permalink
tests(graphical): update missed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda committed Mar 27, 2024
1 parent 67b5364 commit 211f022
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/graphical.rs
Expand Up @@ -1959,7 +1959,8 @@ fn syntax_highlighter() {
GraphicalReportHandler::new_themed(GraphicalTheme::unicode())
.render_report(&mut out, &err)
.unwrap();
let expected = r#" × This is an error
let expected = r#"
× This is an error
╭─[hello_world:2:5]
1 │ fn main() {
2 │ println!("Hello, World!");
Expand Down Expand Up @@ -2013,7 +2014,8 @@ fn syntax_highlighter_on_real_file() {
.unwrap();

let expected = format!(
r#" × This is an error
r#"
× This is an error
╭─[{filename}:{l2}:{CO}]
{l1} │
{l2} │ let (filename, line) = (file!(), line!() as usize);
Expand Down

0 comments on commit 211f022

Please sign in to comment.