Skip to content

Commit 9f237ed

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

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/fuzz.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,24 @@ fn fuzz() -> Result<(), String> {
127127
),
128128
Ok("<p>&lt;</p>".to_string()),
129129
"12: mdx: handle invalid mdx without panic (GH-26)"
130+
)
131+
132+
assert_eq!(
130133
to_html("[:]:a\n-\na\n-"),
131134
"<h2>-\na</h2>",
132135
"10: handle link in heading"
136+
)
137+
138+
assert_eq!(
139+
to_html("[:]:a\n-\na\n-"),
140+
"<h2>-\na</h2>",
141+
"xx: handle link in heading (GH-22)"
142+
);
143+
144+
assert_eq!(
145+
to_html("a\n-\n--\na\n-"),
146+
"<h2>a</h2>\n<h2>--\na</h2>",
147+
"xx: two setext headings next to each other (GH-22)"
133148
);
134149

135150
Ok(())

0 commit comments

Comments
 (0)