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.
30 lines
327 B
30 lines
327 B
5 years ago
|
#!/bin/sh
|
||
|
. test/lib.sh
|
||
|
|
||
|
begin "Handles line break"
|
||
|
scdoc <<EOF | grep '^\.br$' >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
hello++
|
||
|
world
|
||
|
EOF
|
||
|
end 0
|
||
|
|
||
|
begin "Disallows empty line after line break"
|
||
|
scdoc <<EOF >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
hello++
|
||
|
|
||
|
world
|
||
|
EOF
|
||
|
end 1
|
||
|
|
||
|
begin "Leave single +"
|
||
|
scdoc <<EOF | grep 'hello+world' >/dev/null
|
||
|
test(8)
|
||
|
|
||
|
hello+world
|
||
|
EOF
|
||
|
end 0
|