aboutsummaryrefslogtreecommitdiff
path: root/t/t.tmac
blob: c266c1f2fe83956c09d2d750849a052cefe474f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.\" start test
.de test
. nr t +1
. tmc test \\nt (\\$*):
..
.
.\" make assertion
.de assert
.ie \\$1 \{\
. tm1 "	success
.\}
.el \{\
. tm1 "	failure: \\$1
. nr f +1
.\}
..
.\" end tests
.de end
. ie \\nf=0 .tm ** \\nt test(s) finished successfully **
. el \{
.  ab !! \\nf test(s) failed !!
. \}
..
.