harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r441067 - in /incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset: ISOCharsetEncoderTest.java UTF16BECharsetEncoderTest.java UTF16LECharsetEncoderTest.java
Date Thu, 07 Sep 2006 12:28:42 GMT
Author: pyang
Date: Thu Sep  7 05:28:42 2006
New Revision: 441067

URL: http://svn.apache.org/viewvc?view=rev&rev=441067
Log:
Patch applied for HARMONY-1389 ( [classlib][nio_char] Several testSepecificDefaultValue test
cases in nio_char module are failed.)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetEncoderTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16BECharsetEncoderTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16LECharsetEncoderTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetEncoderTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetEncoderTest.java?view=diff&rev=441067&r1=441066&r2=441067
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetEncoderTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetEncoderTest.java
Thu Sep  7 05:28:42 2006
@@ -68,8 +68,8 @@
 	}
 
 	public void testSpecificDefaultValue() {
-		assertEquals(1, encoder.averageBytesPerChar());
-		assertEquals(1, encoder.maxBytesPerChar());
+		assertEquals(1, encoder.averageBytesPerChar(), 0.001);
+		assertEquals(1, encoder.maxBytesPerChar(), 0.001);
 	}
 
 	CharBuffer getMalformedCharBuffer() {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16BECharsetEncoderTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16BECharsetEncoderTest.java?view=diff&rev=441067&r1=441066&r2=441067
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16BECharsetEncoderTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16BECharsetEncoderTest.java
Thu Sep  7 05:28:42 2006
@@ -86,8 +86,8 @@
 	}
 
 	public void testSpecificDefaultValue() {
-		assertEquals(2, encoder.averageBytesPerChar());
-		assertEquals(2, encoder.maxBytesPerChar());
+		assertEquals(2, encoder.averageBytesPerChar(), 0.001);
+		assertEquals(2, encoder.maxBytesPerChar(), 0.001);
 	}
 
 	CharBuffer getMalformedCharBuffer() {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16LECharsetEncoderTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16LECharsetEncoderTest.java?view=diff&rev=441067&r1=441066&r2=441067
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16LECharsetEncoderTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UTF16LECharsetEncoderTest.java
Thu Sep  7 05:28:42 2006
@@ -86,8 +86,8 @@
 	}
 
 	public void testSpecificDefaultValue() {
-		assertEquals(2, encoder.averageBytesPerChar());
-		assertEquals(2, encoder.maxBytesPerChar());
+		assertEquals(2, encoder.averageBytesPerChar(), 0.001);
+		assertEquals(2, encoder.maxBytesPerChar(), 0.001);
 	}
 
 	public void testIsLegalReplacementEmptyArray() {



Mime
View raw message