Make test separators commentable

This commit is contained in:
Laurenz 2021-06-29 16:05:05 +02:00
parent 8ea05739af
commit 2f44d10aa4
5 changed files with 6 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -29,7 +29,7 @@
---
// Ref: false
// Error: 3:1 expected closing brace
// Error: 2:1 expected closing brace
{
---

View File

@ -26,7 +26,7 @@
// Error: 1-3 expected function, found string
#x()
// Error: 3:1 expected closing bracket
// Error: 2:1 expected closing bracket
#args[`a]`
---

View File

@ -4,4 +4,5 @@
The non-breaking~space does work.
---
En dash: --
- En dash: --
- Em dash: ---

View File

@ -146,7 +146,7 @@ fn test(
let mut compare_ref = true;
let mut compare_ever = false;
let parts: Vec<_> = src.split("---").collect();
let parts: Vec<_> = src.split("\n---").collect();
for (i, part) in parts.iter().enumerate() {
let is_header = i == 0
&& parts.len() > 1
@ -168,7 +168,7 @@ fn test(
frames.extend(part_frames);
}
lines += part.lines().count() as u32;
lines += part.lines().count() as u32 + 1;
}
if compare_ever {