diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-30 08:16:43 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | fb7de04e463b8e9e6c19b98c21100936b8bdef06 (patch) | |
tree | 90006aa9197ea42eade1124d3c7465568893a319 /tests/test_spans.rs | |
parent | 585c6349c9b84345364350f020e8f987a8b44f7b (diff) |
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).
Diffstat (limited to 'tests/test_spans.rs')
-rw-r--r-- | tests/test_spans.rs | 18 |
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 - "###); -} |