commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r556123 - /jakarta/commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/compiler/CoreFunctionTest.java
Date Fri, 13 Jul 2007 19:41:42 GMT
Author: mbenson
Date: Fri Jul 13 12:41:41 2007
New Revision: 556123

URL: http://svn.apache.org/viewvc?view=rev&rev=556123
Log:
test boolean(nodeset)

Modified:
    jakarta/commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/compiler/CoreFunctionTest.java

Modified: jakarta/commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/compiler/CoreFunctionTest.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/compiler/CoreFunctionTest.java?view=diff&rev=556123&r1=556122&r2=556123
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/compiler/CoreFunctionTest.java
(original)
+++ jakarta/commons/proper/jxpath/trunk/src/test/org/apache/commons/jxpath/ri/compiler/CoreFunctionTest.java
Fri Jul 13 12:41:41 2007
@@ -99,6 +99,8 @@
         assertXPathValue(context, "boolean(0)", Boolean.FALSE);
         assertXPathValue(context, "boolean('x')", Boolean.TRUE);
         assertXPathValue(context, "boolean('')", Boolean.FALSE);
+        assertXPathValue(context, "boolean(/list)", Boolean.TRUE);
+        assertXPathValue(context, "boolean(/list[position() < 1])", Boolean.FALSE);
 
         assertXPathValue(context, "true()", Boolean.TRUE);
         assertXPathValue(context, "false()", Boolean.FALSE);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message