From 8e62161e1d1a7f2f3732dfd66f85ecb09fe19c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 21 Jun 2021 12:56:03 +0200 Subject: Add tests --- t/t.tmac | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 t/t.tmac (limited to 't/t.tmac') 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 !! +. \} +.. +. -- cgit v1.2.3