#!/bin/sh . test/lib.sh begin "Fail on ###" scdoc </dev/null test(8) ### this is not a valid heading EOF end 1 begin "Expects a space after #" scdoc </dev/null test(8) #needs a space there EOF end 1 begin "Emits a new section" scdoc </dev/null test(8) # HEADER EOF end 0 begin "Emits a new subsection" scdoc </dev/null test(8) ## HEADER EOF end 0