Skip to content

Commit

Permalink
[test] multi value field lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
line-o committed Aug 26, 2023
1 parent 2281c66 commit e04765f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions extensions/indexes/range/src/test/xquery/range/range.xql
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,17 @@ function rt:equality-field-nested($type as xs:string, $subtype as xs:string, $na
collection("/db/rangetest")//range:field-eq(("type", "subtype", "name"), $type, $subtype, $name)/text()
};

(: Test multi-value field lookups :)
declare
%test:assertEquals("Hofthiergarten", "Dorfprozelten")
function rt:equality-field-nested-multi() {
collection("/db/rangetest")
//range:field-eq(
("type", "subtype", "name"),
"main", "official", ("Hofthiergarten", "Dorfprozelten"))
/text()
};

declare
%test:assertEquals("Almweide")
function rt:remove-document() {
Expand Down

0 comments on commit e04765f

Please sign in to comment.