mirror of https://github.com/ddevault/scdoc
parent
5ee33091fb
commit
9744a539ab
@ -0,0 +1,22 @@ |
||||
#!/bin/sh |
||||
. test/lib.sh |
||||
|
||||
begin "Ignore comments" |
||||
scdoc <<EOF | grep "this is a comment" >/dev/null |
||||
test(8) |
||||
|
||||
; this is a comment |
||||
|
||||
Hello world! |
||||
EOF |
||||
end 1 |
||||
|
||||
begin "Fail on invalid comments" |
||||
scdoc <<EOF >/dev/null |
||||
test(8) |
||||
|
||||
;this is an invalid comment |
||||
|
||||
Hello world! |
||||
EOF |
||||
end 1 |
Loading…
Reference in new issue