http://www.jenitennison.com/xslt/xspec/generate-query-tests.xsl
declare namespace
= "
";
import module namespace
= "
"
at "
";
import module namespace test =
"http://www.jenitennison.com/xslt/unit-test"
at "
"
;
{
}
,
let $
:tmp := local:
(
,
) return (
$
:tmp
,
)
declare function local:
(
)
{
{
let $
:result :=
(
$
,
)
return (
test:report-value($
:result, '
:result'),
let $
:result := ()
return (
)
}
};
declare function local:
(
$
,
)
{
let $local:expected := (: expected result :)
(
)
let $local:successful as xs:boolean := (: did the test pass?:)
test:deep-equal($local:expected,
)
(
)
test:deep-equal($local:expected, $
:result)
return
{ test:report-value($local:expected, '
:expect') }
};