Concordion > Displaying Results >

Failures

Failures are indicated by adding a class="failure" attribute to the element, and replacing the contents with a <del> and <ins> elements containing the expected value and the actual value respectively.

Example

<p concordion:assertEquals="acronym">ABC</p>

When marked as a failure, with acroynm returning XYZ, it becomes:

<p concordion:assertEquals="acronym" class="failure"> _
<del class="expected">ABC</del>
<ins class="actual">XYZ</ins> _
</p>

Note: The underscores indicate line continuations for readability only. They are not output. In reality, it is all in one long line.

Further Details