diff --git a/test/line-breaks b/test/line-breaks new file mode 100755 index 0000000..c6c2fc4 --- /dev/null +++ b/test/line-breaks @@ -0,0 +1,29 @@ +#!/bin/sh +. test/lib.sh + +begin "Handles line break" +scdoc </dev/null +test(8) + +hello++ +world +EOF +end 0 + +begin "Disallows empty line after line break" +scdoc </dev/null +test(8) + +hello++ + +world +EOF +end 1 + +begin "Leave single +" +scdoc </dev/null +test(8) + +hello+world +EOF +end 0