summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-30 07:29:23 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commit63f945e568c0710e3a97cddaa6264e85d86faa79 (patch)
tree45953b0881649488e3ea65976d77e4cf180ff549
parentfb7de04e463b8e9e6c19b98c21100936b8bdef06 (diff)
test: verify off-by-one missing-semicolon-after-character-reference span
-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###"