aboutsummaryrefslogtreecommitdiff
path: root/t/t.tmac
diff options
context:
space:
mode:
Diffstat (limited to 't/t.tmac')
-rw-r--r--t/t.tmac12
1 files changed, 10 insertions, 2 deletions
diff --git a/t/t.tmac b/t/t.tmac
index c266c1f..e2c1dab 100644
--- a/t/t.tmac
+++ b/t/t.tmac
@@ -6,12 +6,20 @@
.
.\" make assertion
.de assert
-.ie \\$1 \{\
+.ec `
+.ie `$1 \{\
. tm1 " success
.\}
+.ec
.el \{\
-. tm1 " failure: \\$1
+. if \\nF<\\nt .tm1 " failure:
+.ec `
+. ds *exp `$1
+.ec
+. tm1 "{ \\*[*exp]
+. if !'\\*[*exp]'\\$1' . tm1 "} \\$1
. nr f +1
+. nr F \\nt
.\}
..
.\" end tests