Skip to content

Commit

Permalink
[bugfix] Function References should be able to have postfix expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Oct 10, 2024
1 parent 6eb5e20 commit 374d06f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions exist-core/src/test/xquery/xquery3/function-reference.xqm
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
(:
: eXist-db Open Source Native XML Database
: Copyright (C) 2001 The eXist-db Authors
:
: [email protected]
: http://www.exist-db.org
:
: This library is free software; you can redistribute it and/or
: modify it under the terms of the GNU Lesser General Public
: License as published by the Free Software Foundation; either
: version 2.1 of the License, or (at your option) any later version.
:
: This library is distributed in the hope that it will be useful,
: but WITHOUT ANY WARRANTY; without even the implied warranty of
: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
: Lesser General Public License for more details.
:
: You should have received a copy of the GNU Lesser General Public
: License along with this library; if not, write to the Free Software
: Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
:)
xquery version "3.1";

module namespace fr = "http://exist-db.org/xquery/test/function-reference";

declare namespace test = "http://exist-db.org/xquery/xqsuite";

declare
%test:assertExists
function fr:function-reference() {
fr:test-identity#1
};

declare
%test:args("adam")
%test:assertEquals("adam")
function fr:function-reference-eval($arg) {
fr:test-identity#1($arg)
};

declare function fr:test-identity($x) {
$x
};

0 comments on commit 374d06f

Please sign in to comment.