Files
discount/tests/tabstop.t
T
David Parsons 3aa4343255 Rework all of the test cases so they use tests/functions.sh,
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)
2010-02-11 23:13:29 -08:00

49 lines
481 B
Perl

. tests/functions.sh
rc=0
unset MARKDOWN_FLAGS
unset MKD_TABSTOP
eval `./markdown -V | tr ' ' '\n' | grep TAB`
if [ "${TAB:-4}" -eq 8 ]; then
title "dealing with tabstop derangement"
LIST='
* A
* B
* C'
try 'markdown with TAB=8' \
"$LIST" \
'<ul>
<li>A
<ul>
<li>B
<ul>
<li>C</li>
</ul>
</li>
</ul>
</li>
</ul>'
try -F0x0200 'markdown with TAB=4' \
"$LIST" \
'<ul>
<li>A
<ul>
<li>B</li>
<li>C</li>
</ul>
</li>
</ul>'
fi
summary $0
exit $rc