You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ni...@apache.org on 2011/01/09 21:13:36 UTC

svn commit: r1057020 - /commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java

Author: niallp
Date: Sun Jan  9 20:13:35 2011
New Revision: 1057020

URL: http://svn.apache.org/viewvc?rev=1057020&view=rev
Log:
port r931457 to LANG 2.x branch - Bug in copy and paste, now tests MutableFloat not MutableDouble for String constructor

Modified:
    commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java

Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java?rev=1057020&r1=1057019&r2=1057020&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java (original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/mutable/MutableFloatTest.java Sun Jan  9 20:13:35 2011
@@ -39,7 +39,7 @@ public class MutableFloatTest extends Te
         assertEquals(2f, new MutableFloat(new Float(2f)).floatValue(), 0.0001f);
         assertEquals(3f, new MutableFloat(new MutableFloat(3f)).floatValue(), 0.0001f);
 
-        assertEquals(2f, new MutableDouble("2.0").floatValue(), 0.0001f);
+        assertEquals(2f, new MutableFloat("2.0").floatValue(), 0.0001f);
 
         try {
             new MutableFloat((Number)null);