diff options
Diffstat (limited to 'tests/test_spans.rs')
-rw-r--r-- | tests/test_spans.rs | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -245,6 +245,15 @@ fn tests_for_errors_are_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;"; assert_snapshot!(annotate_errors(html), @r###" |