Skip to content

Commit 71d57ef

Browse files
committed
Update tests
1 parent 0f06aa0 commit 71d57ef

File tree

1 file changed

+15
-3
lines changed
  • exist-core/src/test/xquery

1 file changed

+15
-3
lines changed

exist-core/src/test/xquery/fn.xql

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,26 @@ function fnt:tokenize-onearg($str as xs:string) {
127127
};
128128

129129
declare
130-
%test:assertEquals("/db/fn-test/test.xml")
130+
%test:assertError("err:XPDY0002")
131+
function fnt:document-uri0_noarg() {
132+
document-uri()
133+
};
134+
135+
declare
136+
%test:assertError("err:XPDY0002")
131137
function fnt:document-uri0() {
138+
document-uri(.)
139+
};
140+
141+
declare
142+
%test:assertEquals("/db/fn-test/test.xml")
143+
function fnt:document-uri0_context() {
132144
root(collection('/db/fn-test')//book)/document-uri()
133145
};
134146

135147
declare
136148
%test:assertError("err:XPDY0002")
137-
function fnt:document-uri0_empty() {
149+
function fnt:document-uri0_context_empty() {
138150
root(collection('/db/fn-test')//bookies)/document-uri()
139151
};
140152

@@ -148,4 +160,4 @@ declare
148160
%test:assertEmpty
149161
function fnt:document-uri1_empty() {
150162
document-uri(root(collection('/db/fn-test')//bookies))
151-
};
163+
};

0 commit comments

Comments
 (0)