Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-10 14:14:34 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-13 15:13:47 -0400
commit6ce3a1df671838a2013dc01589dca63cc1bb97ac (patch)
tree4e6708d24038b442628ded6bc1774894343a82bb
parent0abb7104b1c2a6844d23951e9cb3c5e106cf8e1a (diff)
downloadtame-6ce3a1df671838a2013dc01589dca63cc1bb97ac.tar.gz
tame-6ce3a1df671838a2013dc01589dca63cc1bb97ac.tar.bz2
tame-6ce3a1df671838a2013dc01589dca63cc1bb97ac.zip
assert: Add _assert_/@neg-desc@
* assert.xml (_assert_)[@neg-desc@]: New param to allow setting the description of the negative classification. This is especially useful when humans are going to be reading the assertion classifications; it can otherwise be very confusing.
-rw-r--r--core/assert.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/assert.xml b/core/assert.xml
index a12a4e7..e1e529c 100644
--- a/core/assert.xml
+++ b/core/assert.xml
@@ -81,10 +81,14 @@
<text unique="true">_nassert</text>
</param>
+ <param name="@neg-desc@" desc="Description for negative classification">
+ <param-value name="@failure@" />
+ <text> (assertion result)</text>
+ </param>
+
<!-- The actual assertion will be performed by one classification... -->
- <classify as="@neg-as@" yields="@neg-yields@"
- desc="{@failure@} (assertion result)">
+ <classify as="@neg-as@" yields="@neg-yields@" desc="@neg-desc@">
<any>
<!-- if class is provided and does not match, then the assertion
succeeds automatically -->