diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-01 19:58:33 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | 822cc78d438e8df6a068d811d3cc825b883aba36 (patch) | |
tree | 060564fb15d42a911b7e5a6221e6dbe7a4ee5929 /tests/test_spans.rs | |
parent | fd43f18f20afcead7f3976ac893a4b5c4155b41f (diff) |
fix: too small char ref error spans
Diffstat (limited to 'tests/test_spans.rs')
-rw-r--r-- | tests/test_spans.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs index f22a2aa..7eb7b8a 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -249,7 +249,7 @@ fn error_char_ref_absence_of_digits() { let html = "&#qux;"; assert_snapshot!(annotate_errors(html), @r###" &#qux; - ^ absence-of-digits-in-numeric-character-reference + ^^^ absence-of-digits-in-numeric-character-reference "###); } @@ -258,7 +258,7 @@ fn error_char_ref_control_char() { let html = ""; assert_snapshot!(annotate_errors(html), @r###"  - ^ control-character-reference + ^^^^^^ control-character-reference "###); } @@ -276,7 +276,7 @@ fn error_char_ref_noncharacter() { let html = ""; assert_snapshot!(annotate_errors(html), @r###"  - ^ noncharacter-character-reference + ^^^^^^^^ noncharacter-character-reference "###); } @@ -285,7 +285,7 @@ fn error_char_ref_null_char() { let html = "�"; assert_snapshot!(annotate_errors(html), @r###" � - ^ null-character-reference + ^^^^ null-character-reference "###); } @@ -294,7 +294,7 @@ fn error_char_ref_outside_unicode_range() { let html = "�"; assert_snapshot!(annotate_errors(html), @r###" � - ^ character-reference-outside-unicode-range + ^^^^^^^^^^ character-reference-outside-unicode-range "###); } @@ -303,7 +303,7 @@ fn error_char_ref_surrogate() { let html = "�"; assert_snapshot!(annotate_errors(html), @r###" � - ^ surrogate-character-reference + ^^^^^^^^ surrogate-character-reference "###); } @@ -312,7 +312,7 @@ 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 + ^^^^^^^^ unknown-named-character-reference "###); } |