Lindenii Project Forge
Login

scdoc

scdoc mirror for performance testing
Commit info
ID
059002cd2c6bd993d4416d0a5c7de83e77efacfd
Author
Damien Tardy-Panis <damien@tardypad.me>
Author date
Tue, 19 May 2020 18:19:48 +0200
Committer
Drew DeVault <sir@cmpwn.com>
Committer date
Tue, 19 May 2020 16:40:46 -0400
Actions
Add basic working tests for line breaks parsing
#!/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