Skip to content

Commit

Permalink
Double-check test
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges committed Aug 5, 2024
1 parent eb6d721 commit e882776
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/graphical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2450,6 +2450,9 @@ fn at_invalid_unicode() -> Result<(), MietteError> {
src: SourceSpan::from((utf8_err.valid_up_to(), utf8_err.error_len().unwrap_or(1))),
};

// check that we're testing the thing we think we're testing
assert_eq!(err.src.len(), 3);

let result = fmt_report(Report::new(err).with_source_code(Vec::from(invalid_source)));

let expected = "decode_err
Expand Down

0 comments on commit e882776

Please sign in to comment.