You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2009/04/04 21:41:21 UTC
svn commit: r761994 -
/commons/proper/math/trunk/src/test/org/apache/commons/math/fraction/BigFractionTest.java
Author: psteitz
Date: Sat Apr 4 19:41:21 2009
New Revision: 761994
URL: http://svn.apache.org/viewvc?rev=761994&view=rev
Log:
Replaced JDK 1.6 constant.
Modified:
commons/proper/math/trunk/src/test/org/apache/commons/math/fraction/BigFractionTest.java
Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/fraction/BigFractionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/fraction/BigFractionTest.java?rev=761994&r1=761993&r2=761994&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/fraction/BigFractionTest.java (original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/fraction/BigFractionTest.java Sat Apr 4 19:41:21 2009
@@ -235,7 +235,7 @@
}
}
assertEquals(1l, new BigFraction(Double.MAX_VALUE).getDenominatorAsLong());
- assertEquals(1l, new BigFraction(Double.MIN_NORMAL).getNumeratorAsLong());
+ assertEquals(1l, new BigFraction(Double.longBitsToDouble(0x0010000000000000L)).getNumeratorAsLong());
assertEquals(1l, new BigFraction(Double.MIN_VALUE).getNumeratorAsLong());
}