mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
which gives me the ability to do verbose and nonverbose test suite running (`VERBOSE=1 make test` is the traditional output now, and `make test` just gives pass/fail on each .t file)
49 lines
591 B
Raku
49 lines
591 B
Raku
. tests/functions.sh
|
|
|
|
title "markup peculiarities"
|
|
|
|
rc=0
|
|
MARKDOWN_FLAGS=
|
|
|
|
try 'list followed by header .......... ' \
|
|
"
|
|
- AAA
|
|
- BBB
|
|
-" \
|
|
'<ul>
|
|
<li>AAA
|
|
|
|
<h2>– BBB</h2></li>
|
|
</ul>'
|
|
|
|
try 'ul with mixed item prefixes' \
|
|
'
|
|
- A
|
|
1. B' \
|
|
'<ul>
|
|
<li>A</li>
|
|
<li>B</li>
|
|
</ul>'
|
|
|
|
try 'ol with mixed item prefixes' \
|
|
'
|
|
1. A
|
|
- B
|
|
' \
|
|
'<ol>
|
|
<li>A</li>
|
|
<li>B</li>
|
|
</ol>'
|
|
|
|
try 'forcing a <br/>' 'this
|
|
is' '<p>this<br/>
|
|
is</p>'
|
|
|
|
try 'trimming single spaces' 'this ' '<p>this</p>'
|
|
try -fnohtml 'markdown <br/> with -fnohtml' 'foo
|
|
is' '<p>foo<br/>
|
|
is</p>'
|
|
|
|
summary $0
|
|
exit $rc
|