Skip to content

Commit

Permalink
fixup! [test] Add XQuery 1.0 and XQuery 3.1 tests for cyclic library …
Browse files Browse the repository at this point in the history
…module imports
  • Loading branch information
adamretter committed Jul 31, 2023
1 parent bb5c674 commit 49db362
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,7 @@ public void xq10CyclicThreeLibraryModules() throws EXistException, IOException,
"};\n";

final String query =
"xquery version \"1.0\";\n" +
"import module namespace impl1 = \"http://example.com/impl1\"" +
" at \"xmldb:exist:///db/impl1.xqm\";\n" +
"<result>\n" +
Expand Down Expand Up @@ -1498,7 +1499,7 @@ public void xq10CyclicThreeLibraryModules() throws EXistException, IOException,
@Test
public void xq31CyclicThreeLibraryModules() throws EXistException, IOException, PermissionDeniedException, LockException, SAXException, XPathException {
final String module1 =
"xquery version \"1.0\";\n" +
"xquery version \"3.1\";\n" +
"module namespace impl1 = \"http://example.com/impl1\";\n" +
"import module namespace impl2 = \"http://example.com/impl2\"" +
" at \"xmldb:exist:///db/impl2.xqm\";\n" +
Expand All @@ -1507,7 +1508,7 @@ public void xq31CyclicThreeLibraryModules() throws EXistException, IOException,
"};\n";

final String module2 =
"xquery version \"1.0\";\n" +
"xquery version \"3.1\";\n" +
"module namespace impl2 = \"http://example.com/impl2\";\n" +
"import module namespace impl3 = \"http://example.com/impl3\"" +
" at \"xmldb:exist:///db/impl3.xqm\";\n" +
Expand All @@ -1516,7 +1517,7 @@ public void xq31CyclicThreeLibraryModules() throws EXistException, IOException,
"};\n";

final String module3 =
"xquery version \"1.0\";\n" +
"xquery version \"3.1\";\n" +
"module namespace impl3 = \"http://example.com/impl3\";\n" +
"import module namespace impl1 = \"http://example.com/impl1\"" +
" at \"xmldb:exist:///db/impl1.xqm\";\n" +
Expand All @@ -1525,6 +1526,7 @@ public void xq31CyclicThreeLibraryModules() throws EXistException, IOException,
"};\n";

final String query =
"xquery version \"3.1\";\n" +
"import module namespace impl1 = \"http://example.com/impl1\"" +
" at \"xmldb:exist:///db/impl1.xqm\";\n" +
"<result>\n" +
Expand Down

0 comments on commit 49db362

Please sign in to comment.