aboutsummaryrefslogtreecommitdiff
path: root/t/t.tmac
diff options
context:
space:
mode:
Diffstat (limited to 't/t.tmac')
-rw-r--r--t/t.tmac24
1 files changed, 24 insertions, 0 deletions
diff --git a/t/t.tmac b/t/t.tmac
new file mode 100644
index 0000000..c266c1f
--- /dev/null
+++ b/t/t.tmac
@@ -0,0 +1,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 !!
+. \}
+..
+.