From e04765f92c789c4b6d0dbe3dd14818251aa4edc8 Mon Sep 17 00:00:00 2001 From: Juri Leino Date: Sat, 26 Aug 2023 11:35:22 +0200 Subject: [PATCH] [test] multi value field lookup --- .../indexes/range/src/test/xquery/range/range.xql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extensions/indexes/range/src/test/xquery/range/range.xql b/extensions/indexes/range/src/test/xquery/range/range.xql index 4ae00de3ee1..778169bb413 100644 --- a/extensions/indexes/range/src/test/xquery/range/range.xql +++ b/extensions/indexes/range/src/test/xquery/range/range.xql @@ -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() {