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
parent
0abb7104b1
commit
6ce3a1df67
|
@ -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 -->
|
||||
|
|
Loading…
Reference in New Issue