~sircmpwn/scdoc

059002cd2c6bd993d4416d0a5c7de83e77efacfd — Damien Tardy-Panis 6 days ago baaebab
Add basic working tests for line breaks parsing
1 files changed, 29 insertions(+), 0 deletions(-)

A test/line-breaks
A test/line-breaks => test/line-breaks +29 -0
@@ 0,0 1,29 @@
#!/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