mirror of https://github.com/ddevault/scdoc
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
423 B
35 lines
423 B
7 years ago
|
#!/bin/sh
|
||
|
. test/lib.sh
|
||
|
|
||
|
begin "Fail on ###"
|
||
|
scdoc <<EOF >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
### this is not a valid heading
|
||
|
EOF
|
||
|
end 1
|
||
|
|
||
|
begin "Expects a space after #"
|
||
|
scdoc <<EOF >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
#needs a space there
|
||
|
EOF
|
||
|
end 1
|
||
|
|
||
|
begin "Emits a new section"
|
||
|
scdoc <<EOF | grep '^\.SH HEADER' >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
# HEADER
|
||
|
EOF
|
||
|
end 0
|
||
|
|
||
|
begin "Emits a new subsection"
|
||
|
scdoc <<EOF | grep '^\.SS HEADER' >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
## HEADER
|
||
|
EOF
|
||
|
end 0
|