summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_spans.rs9
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 = "&not";
+ assert_snapshot!(annotate_errors(html), @r###"
+ &not
+ ^ missing-semicolon-after-character-reference
+ "###);
+}
+
+#[test]
fn error_char_ref_unknown_named() {
let html = "The pirate says &arrrrr;";
assert_snapshot!(annotate_errors(html), @r###"