File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
exist-core/src/test/xquery Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,26 @@ function fnt:tokenize-onearg($str as xs:string) {
127
127
};
128
128
129
129
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" )
131
137
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 () {
132
144
root (collection ('/db/fn-test' )//book)/document-uri ()
133
145
};
134
146
135
147
declare
136
148
%test:assertError("err:XPDY0002" )
137
- function fnt:document-uri0_empty () {
149
+ function fnt:document-uri0_context_empty () {
138
150
root (collection ('/db/fn-test' )//bookies)/document-uri ()
139
151
};
140
152
@@ -148,4 +160,4 @@ declare
148
160
%test:assertEmpty
149
161
function fnt:document-uri1_empty () {
150
162
document-uri (root (collection ('/db/fn-test' )//bookies))
151
- };
163
+ };
You can’t perform that action at this time.
0 commit comments