summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-01 19:58:33 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commit822cc78d438e8df6a068d811d3cc825b883aba36 (patch)
tree060564fb15d42a911b7e5a6221e6dbe7a4ee5929 /tests
parentfd43f18f20afcead7f3976ac893a4b5c4155b41f (diff)
fix: too small char ref error spans
Diffstat (limited to 'tests')
-rw-r--r--tests/test_spans.rs14
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 = "&#127;";
assert_snapshot!(annotate_errors(html), @r###"
&#127;
- ^ control-character-reference
+ ^^^^^^ control-character-reference
"###);
}
@@ -276,7 +276,7 @@ fn error_char_ref_noncharacter() {
let html = "&#xFDD0;";
assert_snapshot!(annotate_errors(html), @r###"
&#xFDD0;
- ^ noncharacter-character-reference
+ ^^^^^^^^ noncharacter-character-reference
"###);
}
@@ -285,7 +285,7 @@ fn error_char_ref_null_char() {
let html = "&#0;";
assert_snapshot!(annotate_errors(html), @r###"
&#0;
- ^ null-character-reference
+ ^^^^ null-character-reference
"###);
}
@@ -294,7 +294,7 @@ fn error_char_ref_outside_unicode_range() {
let html = "&#9999999;";
assert_snapshot!(annotate_errors(html), @r###"
&#9999999;
- ^ character-reference-outside-unicode-range
+ ^^^^^^^^^^ character-reference-outside-unicode-range
"###);
}
@@ -303,7 +303,7 @@ fn error_char_ref_surrogate() {
let html = "&#xD800;";
assert_snapshot!(annotate_errors(html), @r###"
&#xD800;
- ^ 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
"###);
}