Markdown Reader: Add basic tests for each header style
This commit is contained in:
parent
0c7d0757d6
commit
53cb926232
1 changed files with 10 additions and 0 deletions
|
@ -224,6 +224,16 @@ tests = [ testGroup "inline code"
|
|||
, "bracketed text (#2062)" =:
|
||||
"# [hi]\n"
|
||||
=?> headerWith ("hi",[],[]) 1 "[hi]"
|
||||
, "ATX header without trailing #s" =:
|
||||
"# Foo bar\n\n" =?>
|
||||
headerWith ("foo-bar",[],[]) 1 "Foo bar"
|
||||
, "ATX header without trailing #s" =:
|
||||
"# Foo bar with # #" =?>
|
||||
headerWith ("foo-bar-with",[],[]) 1 "Foo bar with #"
|
||||
, "setext header" =:
|
||||
"Foo bar\n=\n\n Foo bar 2 \n=" =?>
|
||||
headerWith ("foo-bar",[],[]) 1 "Foo bar"
|
||||
<> headerWith ("foo-bar-2",[],[]) 1 "Foo bar 2"
|
||||
]
|
||||
, testGroup "Implicit header references"
|
||||
[ "ATX header without trailing #s" =:
|
||||
|
|
Loading…
Add table
Reference in a new issue