mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Make test separators commentable
This commit is contained in:
parent
8ea05739af
commit
2f44d10aa4
Binary file not shown.
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.6 KiB |
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
// Ref: false
|
// Ref: false
|
||||||
// Error: 3:1 expected closing brace
|
// Error: 2:1 expected closing brace
|
||||||
{
|
{
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
// Error: 1-3 expected function, found string
|
// Error: 1-3 expected function, found string
|
||||||
#x()
|
#x()
|
||||||
|
|
||||||
// Error: 3:1 expected closing bracket
|
// Error: 2:1 expected closing bracket
|
||||||
#args[`a]`
|
#args[`a]`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -4,4 +4,5 @@
|
|||||||
The non-breaking~space does work.
|
The non-breaking~space does work.
|
||||||
|
|
||||||
---
|
---
|
||||||
En dash: --
|
- En dash: --
|
||||||
|
- Em dash: ---
|
||||||
|
@ -146,7 +146,7 @@ fn test(
|
|||||||
let mut compare_ref = true;
|
let mut compare_ref = true;
|
||||||
let mut compare_ever = false;
|
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() {
|
for (i, part) in parts.iter().enumerate() {
|
||||||
let is_header = i == 0
|
let is_header = i == 0
|
||||||
&& parts.len() > 1
|
&& parts.len() > 1
|
||||||
@ -168,7 +168,7 @@ fn test(
|
|||||||
frames.extend(part_frames);
|
frames.extend(part_frames);
|
||||||
}
|
}
|
||||||
|
|
||||||
lines += part.lines().count() as u32;
|
lines += part.lines().count() as u32 + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if compare_ever {
|
if compare_ever {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user