From 63f945e568c0710e3a97cddaa6264e85d86faa79 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 30 Aug 2023 07:29:23 +0200 Subject: test: verify off-by-one missing-semicolon-after-character-reference span --- tests/test_spans.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/test_spans.rs b/tests/test_spans.rs index 1b6774d..560fe0e 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -244,6 +244,15 @@ fn tests_for_errors_are_sorted() { assert_eq!(error_tests_found_order, error_tests_sorted); } +#[test] +fn error_char_ref_missing_semicolon() { + let html = "¬"; + assert_snapshot!(annotate_errors(html), @r###" + ¬ + ^ missing-semicolon-after-character-reference + "###); +} + #[test] fn error_char_ref_unknown_named() { let html = "The pirate says &arrrrr;"; -- cgit v1.2.3