You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- extend XQueryCompilationTest
- assert dynamic and static errors with code, location and message
- assert execution result
- run all tests, none ignored
- adapt tests to match actual behaviour
finalStringerror = "err:XQTY0105 Function types are not allowed in element content. Got function(*) [at line 1, column 16, source: element test { sum(?) }]";
66
-
assertCompilationError(query, error);
62
+
finalStringerror = "Function types are not allowed in element content. Got function(*)";
finalStringerror = "err:XQTY0105 Function types are not allowed in element content. Got function(*) [at line 1, column 16, source: element test { sum#0 }]";
75
-
assertCompilationError(query, error);
70
+
finalStringerror = "Function types are not allowed in element content. Got function(*)";
finalStringquery = "let $f := function () {} return element test { $f }";
83
-
finalStringerror = "err:XQTY0105 Function types are not allowed in element content. Got function(*) [at line 1, column 16, source: element test { sum(?) }]";
84
-
assertCompilationError(query, error);
78
+
finalStringerror = "Enclosed expression contains function item";
finalStringquery = "element test { function () {} }";
90
-
// TODO: user defined function has its location offset to a weird location
91
-
finalStringerror = "err:XQTY0105 Function types are not allowed in element content. Got function(*) [at line 1, column 25, source: element test { function () { () } }]";
92
-
assertCompilationError(query, error);
86
+
finalStringerror = "Function types are not allowed in element content. Got function(*)";
finalStringerror = "err:XQTY0105 Function types are not allowed in element content. Got map(*) [at line 1, column 16, source: element test { map {} }]";
99
-
assertCompilationError(query, error);
93
+
finalStringerror = "Function types are not allowed in element content. Got map(*)";
finalStringerror = "An exception occurred during query execution: err:XQTY0105 Function types are not allowed in element content. Got map(*) [source: element foo { (map{}) }]";
116
-
assertCompilationError(query, error);
109
+
finalStringerror = "Function types are not allowed in element content. Got map(*)";
finalStringerror = "An exception occurred during query execution: err:XQTY0105 Function types are not allowed in element content. Got map(*) [source: element test { [map{}] }]";
137
-
assertCompilationError(query, error);
130
+
finalStringerror = "Enclosed expression contains function item";
finalStringquery = "element test { \"a\", map {} }";
146
-
finalStringerror = "err:XQTY0105 Function types are not allowed in element content. Got map(*) [at line 1, column 20, source: element test { map {} }]";
0 commit comments