From e8827764ec987ff53f1d22473b6f426856cfd7b0 Mon Sep 17 00:00:00 2001 From: George Pollard Date: Mon, 5 Aug 2024 13:24:06 +1200 Subject: [PATCH] Double-check test --- tests/graphical.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/graphical.rs b/tests/graphical.rs index bf8313d..2d3b48f 100644 --- a/tests/graphical.rs +++ b/tests/graphical.rs @@ -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