aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_spans.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs
index a2e5d3e..1b6774d 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_unknown_named() {
+ let html = "The pirate says &arrrrr;";
+ assert_snapshot!(annotate_errors(html), @r###"
+ The pirate says &arrrrr;
+ ^ unknown-named-character-reference
+ "###);
+}
+
+#[test]
fn error_duplicate_attribute() {
let html = "Does this open two pages? <a href=foo.html href=bar.html>";
assert_snapshot!(annotate_errors(html), @r###"
@@ -327,12 +336,3 @@ fn error_invalid_first_character_of_tag_name() {
^ invalid-first-character-of-tag-name
"###);
}
-
-#[test]
-fn error_unknown_named_character_reference() {
- let html = "The pirate says &arrrrr;";
- assert_snapshot!(annotate_errors(html), @r###"
- The pirate says &arrrrr;
- ^ unknown-named-character-reference
- "###);
-}