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)
39 lines
724 B
Perl
39 lines
724 B
Perl
. tests/functions.sh
|
|
title "deeply nested lists"
|
|
|
|
rc=0
|
|
MARKDOWN_FLAGS=
|
|
|
|
LIST='
|
|
* top-level list ( list 1)
|
|
+ second-level list (list 2)
|
|
* first item third-level list (list 3)
|
|
+ * second item, third-level list, first item. (list 4)
|
|
* second item, third-level list, second item.
|
|
* top-level list again.'
|
|
|
|
RSLT='<ul>
|
|
<li>top-level list ( list 1)
|
|
|
|
<ul>
|
|
<li>second-level list (list 2)
|
|
|
|
<ul>
|
|
<li>first item third-level list (list 3)</li>
|
|
</ul>
|
|
</li>
|
|
<li><ul>
|
|
<li>second item, third-level list, first item. (list 4)</li>
|
|
<li>second item, third-level list, second item.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>top-level list again.</li>
|
|
</ul>'
|
|
|
|
try 'thrice-nested lists' "$LIST" "$RSLT"
|
|
|
|
summary $0
|
|
exit $rc
|