Skip to content

Commit e04765f

Browse files
committed
[test] multi value field lookup
1 parent 2281c66 commit e04765f

File tree

1 file changed

+11
-0
lines changed
  • extensions/indexes/range/src/test/xquery/range

1 file changed

+11
-0
lines changed

extensions/indexes/range/src/test/xquery/range/range.xql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,17 @@ function rt:equality-field-nested($type as xs:string, $subtype as xs:string, $na
369369
collection("/db/rangetest")//range:field-eq(("type", "subtype", "name"), $type, $subtype, $name)/text()
370370
};
371371

372+
(: Test multi-value field lookups :)
373+
declare
374+
%test:assertEquals("Hofthiergarten", "Dorfprozelten")
375+
function rt:equality-field-nested-multi() {
376+
collection("/db/rangetest")
377+
//range:field-eq(
378+
("type", "subtype", "name"),
379+
"main", "official", ("Hofthiergarten", "Dorfprozelten"))
380+
/text()
381+
};
382+
372383
declare
373384
%test:assertEquals("Almweide")
374385
function rt:remove-document() {

0 commit comments

Comments
 (0)