Test Results for UnitTest
eXist Version 1.3.0dev : Revision 8849
7 Tests passed, 2 Failed, 0 not checked
Tests for the Unit Test runner itself
Unusually, some tests are designed to fail because they are testing that errors are
detected!
Author: Chris Wallace
Test equal text : Passed
| XQuery |
"red"
|
| Output |
red
|
| Elapsed Time (ms) |
4 |
Test equal xml : Passed
| XQuery |
<node>x</node>
|
| Output |
x
|
| Elapsed Time (ms) |
4 |
Test Contains : Passed
| XQuery |
"this is a string which contains red "
|
| Output |
this is a string which contains red
|
| Elapsed Time (ms) |
4 |
Test Multiple Contains : Passed
| XQuery |
"this is a string which contains red "
|
| Output |
this is a string which contains red
|
| Elapsed Time (ms) |
3 |
Test omits : Passed
| XQuery |
"this is a string which does not contain the complement of green"
|
| Output |
this is a string which does not contain the complement of green
|
| Elapsed Time (ms) |
4 |
Check XQuery code : Passed
| XQuery |
let $x := 5 * 6 return $x
|
| Output |
30
|
| Elapsed Time (ms) |
5 |
Check XQuery code failing : Failed
| XQuery |
let $x := 5 * 6 return $x
|
| Output |
30
|
| Fail : String Equality |
|
| Elapsed Time (ms) |
4 |
Return complex XML : Passed
| XQuery |
let $good :=
<TrafficLights>
<band min="0" colour="red"/>
<band min="6" colour="orange"/>
<band min="10" colour="green"/>
</TrafficLights>
return $good
|
| Output |
|
| Elapsed Time (ms) |
6 |
Return complex XML - not as expected : Failed
| XQuery |
let $good :=
<TrafficLights>
<band min="0" colour="red"/>
<band min="6" colour="orange"/>
<band min="10" colour="green"/>
</TrafficLights>
return $good
|
| Output |
|
| Fail : Element Equality |
<TrafficLights>
<band min="0" colour="red"/>
<band min="6" colour="orange"/>
<band min="10" colour="purple"/>
</TrafficLights>
|
| Elapsed Time (ms) |
6 |