Skip to content

Commit

Permalink
test: add alternate example of issue, without definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Aug 15, 2023
1 parent 36a7aa1 commit 9a1ca99
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ fn fuzz() -> Result<(), String> {
to_html("[:]:a\n-\na\n-"),
"<h2>-\na</h2>",
"10: handle link in heading"
to_html("[:]:a\n-\na\n-"),
"<h2>-\na</h2>",
"xx: handle link in heading (GH-22)"
);

assert_eq!(
to_html("a\n-\n--\na\n-"),
"<h2>a</h2>\n<h2>--\na</h2>",
"xx: two setext headings next to each other (GH-22)"
);

Ok(())
Expand Down

0 comments on commit 9a1ca99

Please sign in to comment.