File: xml.t

package info (click to toggle)
discount 2.1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 728 kB
  • sloc: ansic: 4,582; pascal: 855; sh: 196; makefile: 120
file content (18 lines) | stat: -rw-r--r-- 635 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
. 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"' '“hello,sailor”'
try -fnocdata 'html output from markdown()' '"hello,sailor"' '<p>&ldquo;hello,sailor&rdquo;</p>'
try -fnocdata '... from mkd_generateline()' -t'"hello,sailor"' '&ldquo;hello,sailor&rdquo;'

try -fcdata 'xml output with multibyte utf-8' \
    'tecnología y servicios más confiables' \
    '&lt;p&gt;tecnología y servicios más confiables&lt;/p&gt;'

summary $0
exit $rc