db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1054968 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XMLTypeAndOpsTest.java
Date Tue, 04 Jan 2011 10:54:50 GMT
Author: kahatlen
Date: Tue Jan  4 10:54:49 2011
New Revision: 1054968

URL: http://svn.apache.org/viewvc?rev=1054968&view=rev
Log:
DERBY-2739: Test XPath queries that return Infinity or NaN

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XMLTypeAndOpsTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XMLTypeAndOpsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XMLTypeAndOpsTest.java?rev=1054968&r1=1054967&r2=1054968&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XMLTypeAndOpsTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/XMLTypeAndOpsTest.java
Tue Jan  4 10:54:49 2011
@@ -2661,6 +2661,10 @@ public final class XMLTypeAndOpsTest ext
             { "-0", "0" },
             { "-0.0", "0" },
             { "-0.00", "0" },
+            // Division by zero yields Not A Number or +/- Infinity
+            { "0 div 0", "NaN" },
+            { "3.14 div 0", "Infinity" },
+            { "-3.14 div 0", "-Infinity" },
         };
 
         Statement s = createStatement();



Mime
View raw message