Debian Codegraph @

test/comments

raw symbols SCIP
1 #!/bin/sh
2 . test/lib.sh
3
4 begin "Ignore comments"
5 scdoc <<EOF | grep "this is a comment" >/dev/null
6 test(8)
7
8 ; this is a comment
9
10 Hello world!
11 EOF
12 end 1
13
14 begin "Fail on invalid comments"
15 scdoc <<EOF >/dev/null
16 test(8)
17
18 ;this is an invalid comment
19
20 Hello world!
21 EOF
22 end 1