From fb7de04e463b8e9e6c19b98c21100936b8bdef06 Mon Sep 17 00:00:00 2001
From: Martin Fischer <martin@push-f.com>
Date: Wed, 30 Aug 2023 08:16:43 +0200
Subject: chore: rename char ref test

The tests for character reference errors should be grouped together.
So this commit puts "char_ref" first in the function name
(since our error tests are ordered by function name).
---
 tests/test_spans.rs | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'tests')

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
@@ -244,6 +244,15 @@ fn tests_for_errors_are_sorted() {
     assert_eq!(error_tests_found_order, error_tests_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>";
@@ -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
-    "###);
-}
-- 
cgit v1.2.3