aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-01 19:13:34 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commitbbb00e4a029187ec9e0998639d3470f463c4a798 (patch)
tree62c31af085f6e6f62757568744ba29412cf9a4c7 /tests
parenta3f0d87fe4f4c21e09b981ffa72535fcdf9a78ae (diff)
fix: off-by-one eof error spans
Diffstat (limited to 'tests')
-rw-r--r--tests/test_spans.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs
index 840e8e1..e839f53 100644
--- a/tests/test_spans.rs
+++ b/tests/test_spans.rs
@@ -265,7 +265,7 @@ fn error_eof_before_tag_name() {
let html = "<";
assert_snapshot!(annotate_errors(html), @r###"
<
- ^ eof-before-tag-name
+ ^ eof-before-tag-name
"###);
}
@@ -277,7 +277,7 @@ fn error_eof_in_comment() {
let html = "<!--";
assert_snapshot!(annotate_errors(html), @r###"
<!--
- ^ eof-in-comment
+ ^ eof-in-comment
"###);
}
@@ -286,7 +286,7 @@ fn error_eof_in_doctype() {
let html = "<!doctype html";
assert_snapshot!(annotate_errors(html), @r###"
<!doctype html
- ^ eof-in-doctype
+ ^ eof-in-doctype
"###);
}
@@ -295,7 +295,7 @@ fn error_eof_in_script_html_comment_like_text() {
let html = "<script><!--";
assert_snapshot!(annotate_errors(html), @r###"
<script><!--
- ^ eof-in-script-html-comment-like-text
+ ^ eof-in-script-html-comment-like-text
"###);
}
@@ -304,7 +304,7 @@ fn error_eof_in_tag() {
let html = "</sarcasm";
assert_snapshot!(annotate_errors(html), @r###"
</sarcasm
- ^ eof-in-tag
+ ^ eof-in-tag
"###);
}