[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: tests/kxpathtests/tests
From: Frans Englich <frans.englich () telia ! com>
Date: 2006-08-17 11:37:44
Message-ID: 1155814664.747109.10885.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 573865 by englich:
Fix for http://www.w3.org/Bugs/Public/show_bug.cgi?id=3603
M +14 -3 declarefunction.xml
--- trunk/tests/kxpathtests/tests/declarefunction.xml #573864:573865
@@ -649,13 +649,13 @@
local:error()
</test-case>
-<test-case type="fail-statically" errorCode="XPTY0004"
+<test-case type="ebv" errorCode="XPTY0004"
description="A call to a user function where the argument in the callsite corresponding
- to an unused arguments contains a type error."
+ to an unused argument contains a type error."
>
declare function local:myFunction($unusedArg)
{
- 1
+ true()
};
local:myFunction(1 + "a string")
</test-case>
@@ -733,4 +733,15 @@
is() eq 1
</test-case>
+<test-case type="fail-statically" errorCode="XPTY0004"
+ description="A call to a user function where the argument in the callsite corresponding
+ to a used argument contains a type error."
+>
+declare function local:myFunction($usedArg)
+{
+ $usedArg
+};
+local:myFunction(1 + "a string")
+</test-case>
+
</test-collection>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic