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)
19 lines
635 B
Raku
19 lines
635 B
Raku
. tests/functions.sh
|
|
|
|
title "xml output with MKD_CDATA"
|
|
|
|
rc=0
|
|
MARKDOWN_FLAGS=
|
|
|
|
try -fcdata 'xml output from markdown()' 'hello,sailor' '<p>hello,sailor</p>'
|
|
try -fcdata 'from mkd_generateline()' -t'"hello,sailor"' '&ldquo;hello,sailor&rdquo;'
|
|
try -fnocdata 'html output from markdown()' '"hello,sailor"' '<p>“hello,sailor”</p>'
|
|
try -fnocdata '... from mkd_generateline()' -t'"hello,sailor"' '“hello,sailor”'
|
|
|
|
try -fcdata 'xml output with multibyte utf-8' \
|
|
'tecnología y servicios más confiables' \
|
|
'<p>tecnología y servicios más confiables</p>'
|
|
|
|
summary $0
|
|
exit $rc
|