commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1095285 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
Date Wed, 20 Apr 2011 06:27:28 GMT
Author: bayard
Date: Wed Apr 20 06:27:28 2011
New Revision: 1095285

URL: http://svn.apache.org/viewvc?rev=1095285&view=rev
Log:
Adding a test related to LANG-693 for createNumber

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java?rev=1095285&r1=1095284&r2=1095285&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
Wed Apr 20 06:27:28 2011
@@ -208,6 +208,10 @@ public class NumberUtilsTest extends Tes
 
         // LANG-638
         assertFalse("createNumber(String) succeeded", checkCreateNumber("1eE"));
+
+        // LANG-693
+        assertEquals("createNumber(String) LANG-693 failed", Double.MAX_VALUE, NumberUtils
+                    .createNumber("" + Double.MAX_VALUE));
     }
 
     public void testCreateFloat() {



Mime
View raw message