Skip to content

Commit 9a1ca99

Browse files
test: add alternate example of issue, without definition
1 parent 36a7aa1 commit 9a1ca99

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/fuzz.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ fn fuzz() -> Result<(), String> {
130130
to_html("[:]:a\n-\na\n-"),
131131
"<h2>-\na</h2>",
132132
"10: handle link in heading"
133+
to_html("[:]:a\n-\na\n-"),
134+
"<h2>-\na</h2>",
135+
"xx: handle link in heading (GH-22)"
136+
);
137+
138+
assert_eq!(
139+
to_html("a\n-\n--\na\n-"),
140+
"<h2>a</h2>\n<h2>--\na</h2>",
141+
"xx: two setext headings next to each other (GH-22)"
133142
);
134143

135144
Ok(())

0 commit comments

Comments
 (0)