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.
master
Mike Gerwitz 2018-09-10 14:14:34 -04:00
parent 0abb7104b1
commit 6ce3a1df67
1 changed files with 6 additions and 2 deletions

View File

@ -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 -->