diff --git a/exist-core/src/main/resources/org/exist/xquery/lib/xqsuite/xqsuite.xql b/exist-core/src/main/resources/org/exist/xquery/lib/xqsuite/xqsuite.xql index ec8b3a97bbb..ea7142a96dd 100755 --- a/exist-core/src/main/resources/org/exist/xquery/lib/xqsuite/xqsuite.xql +++ b/exist-core/src/main/resources/org/exist/xquery/lib/xqsuite/xqsuite.xql @@ -264,7 +264,10 @@ declare %private function test:run-tests( } ) else - let $argsAnnot := $meta/annotation[matches(@name, ":args?")][not(preceding-sibling::annotation[1][matches(@name, ":args?")])] + let $argsAnnot := + $meta/annotation[matches(@name, ":args?")] + [not(preceding-sibling::annotation[1][matches(@name, ":args?")])] + let $test := test:test($func, $meta, ?, $test-started-function, $test-failure-function, $test-error-function, $test-finished-function) return @@ -280,7 +283,7 @@ declare %private function test:run-tests( : @param $meta the function description : @param $test-assumption-failed-function A callback for reporting the failure of assumptions : - : @return Any assumption annotations where the asusmption did not hold true + : @return Any assumption annotations where the assumption did not hold true :) declare %private