harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463612 - /incubator/harmony/enhanced/classlib/trunk/modules/math/src/test/java/tests/api/java/math/BigDecimalTest.java
Date Fri, 13 Oct 2006 09:59:26 GMT
Author: hindessm
Date: Fri Oct 13 02:59:25 2006
New Revision: 463612

URL: http://svn.apache.org/viewvc?view=rev&rev=463612
Log:
Converting things like:

  assertTrue(blah == [true|false|null]) to assert[True|False|Null]
  assertEquals(blah, [true,false,null]) to assert[True|False|Null]
  assertEquals([true,false,null], blah) to assert[True|False|Null]

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/math/src/test/java/tests/api/java/math/BigDecimalTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/math/src/test/java/tests/api/java/math/BigDecimalTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/math/src/test/java/tests/api/java/math/BigDecimalTest.java?view=diff&rev=463612&r1=463611&r2=463612
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/math/src/test/java/tests/api/java/math/BigDecimalTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/math/src/test/java/tests/api/java/math/BigDecimalTest.java
Fri Oct 13 02:59:25 2006
@@ -289,25 +289,25 @@
 	public void test_equalsLjava_lang_Object() {
 		BigDecimal equal1 = new BigDecimal(1.00D);
 		BigDecimal equal2 = new BigDecimal("1.0");
-		assertTrue("1.00 and 1.0 should not be equal",
-				equal1.equals(equal2) == false);
+		assertFalse("1.00 and 1.0 should not be equal",
+				equal1.equals(equal2));
 		equal2 = new BigDecimal(1.01D);
-		assertTrue("1.00 and 1.01 should not be equal",
-				equal1.equals(equal2) == false);
+		assertFalse("1.00 and 1.01 should not be equal",
+				equal1.equals(equal2));
 		equal2 = new BigDecimal("1.00");
-		assertTrue("1.00D and 1.00 should not be equal",
-				equal1.equals(equal2) == false);
+		assertFalse("1.00D and 1.00 should not be equal",
+				equal1.equals(equal2));
 		BigInteger val = new BigInteger("100");
 		equal1 = new BigDecimal("1.00");
 		equal2 = new BigDecimal(val, 2);
 		assertTrue("1.00(string) and 1.00(bigInteger) should be equal", equal1
-				.equals(equal2) == true);
+				.equals(equal2));
 		equal1 = new BigDecimal(100D);
 		equal2 = new BigDecimal("2.34576");
-		assertTrue("100D and 2.34576 should not be equal", equal1
-				.equals(equal2) == false);
-		assertTrue("bigDecimal 100D does not equal string 23415", equal1
-				.equals("23415") == false);
+		assertFalse("100D and 2.34576 should not be equal", equal1
+				.equals(equal2));
+		assertFalse("bigDecimal 100D does not equal string 23415", equal1
+				.equals("23415"));
 	}
 
 	/**



Mime
View raw message