File: header.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 (26 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
. tests/functions.sh

title "headers"

rc=0
MARKDOWN_FLAGS=

try 'single #' '#' '<p>#</p>'
try 'empty ETX' '##' '<h1>#</h1>'
try 'single-char ETX (##W)' '##W' '<h2>W</h2>'
try 'single-char ETX (##W )' '##W  ' '<h2>W</h2>'
try 'single-char ETX (## W)' '## W' '<h2>W</h2>'
try 'single-char ETX (## W )' '## W ' '<h2>W</h2>'
try 'single-char ETX (##W##)' '##W##' '<h2>W</h2>'
try 'single-char ETX (##W ##)' '##W ##' '<h2>W</h2>'
try 'single-char ETX (## W##)' '## W##' '<h2>W</h2>'
try 'single-char ETX (## W ##)' '## W ##' '<h2>W</h2>'

try 'multiple-char ETX (##Hello##)' '##Hello##' '<h2>Hello</h2>'

try 'SETEXT with trailing whitespace' \
'hello
=====  ' '<h1>hello</h1>'

summary $0
exit $rc