Skip to content

Commit 4451e99

Browse files
committed
[ignore] use empty function body in jUnit tests
1 parent e8ced07 commit 4451e99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exist-core/src/test/java/org/exist/xquery/FunctionTypeInElementContentTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ public void functionReference() throws XMLDBException {
7979
@Ignore
8080
@Test
8181
public void functionVariable() throws XMLDBException {
82-
final String query = "let $f := function () { () } return element test { $f }";
82+
final String query = "let $f := function () {} return element test { $f }";
8383
final String error = "err:XQTY0105 Function types are not allowed in element content. Got function(*) [at line 1, column 16, source: element test { sum(?) }]";
8484
assertCompilationError(query, error);
8585
}
8686

8787
@Test
8888
public void userDefinedFunction() throws XMLDBException {
89-
final String query = "element test { function () { () } }";
89+
final String query = "element test { function () {} }";
9090
// TODO: user defined function has its location offset to a weird location
9191
final String error = "err:XQTY0105 Function types are not allowed in element content. Got function(*) [at line 1, column 25, source: element test { function () { () } }]";
9292
assertCompilationError(query, error);

0 commit comments

Comments
 (0)