From 822cc78d438e8df6a068d811d3cc825b883aba36 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 1 Sep 2023 19:58:33 +0200 Subject: fix: too small char ref error spans --- tests/test_spans.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') 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 "###); } -- cgit v1.2.3