Home
last modified time | relevance | path

Searched refs:toString (Results 1 – 25 of 1368) sorted by relevance

12345678910>>...55

/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalConstructorsTest.java43 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrBigIntegerMathContext()
54 assertEquals("incorrect value", "1.234567890123456789012345678902E+34", bd.toString()); in testConstrBigIntegerMathContext()
56 assertEquals("incorrect value", "-1.234567890123456789012345678902E+34", bd.toString()); in testConstrBigIntegerMathContext()
60 assertEquals("incorrect value", "1.234567890123456789012345678E+34", bd.toString()); in testConstrBigIntegerMathContext()
62 assertEquals("incorrect value", "-1.234567890123456789012345678E+34", bd.toString()); in testConstrBigIntegerMathContext()
66 assertEquals("incorrect value", "1.23456789012345678901234567890124E+34", bd.toString()); in testConstrBigIntegerMathContext()
68 assertEquals("incorrect value", "-1.23456789012345678901234567890123E+34", bd.toString()); in testConstrBigIntegerMathContext()
72 assertEquals("incorrect value", "1.234567890123456789012345678901234E+34", bd.toString()); in testConstrBigIntegerMathContext()
74 assertEquals("incorrect value", "-1.234567890123456789012345678901235E+34", bd.toString()); in testConstrBigIntegerMathContext()
78 assertEquals("incorrect value", "1.234567890123456789012345678901234E+34", bd.toString()); in testConstrBigIntegerMathContext()
[all …]
DOldBigDecimalTest.java37 big.toString().equals("1230000")); in test_ConstructorD()
40 big.toString().equals("123.375") ); in test_ConstructorD()
43 big.toString().equals("1.16415321826934814453125E-10") ); in test_ConstructorD()
46 big.toString().equals("0.000014372169971466064453125") ); in test_ConstructorD()
49 big.toString().equals("-0.000014372169971466064453125") ); in test_ConstructorD()
64 assertEquals("incorrect value", "23", bd.toString()); in test_constructor_String_plus_exp()
66 assertEquals("incorrect value", "-23", bd.toString()); in test_constructor_String_plus_exp()
85 …the representation of the number -1.253E-12 after setting scale is wrong, " + setScale2.toString(), in test_setScaleILjava_math_RoundingMode()
86 setScale2.toString().equals("-1.25300E-12")); in test_setScaleILjava_math_RoundingMode()
93 setScale2.toString().equals("1234.6") && setScale2.scale() == 1); in test_setScaleILjava_math_RoundingMode()
[all …]
DOldBigDecimalArithmeticTest.java36 a.round(mc).toString()); in testAddMathContextNonTrivial()
38 b.round(mc).toString()); in testAddMathContextNonTrivial()
40 a.round(mc).add(b.round(mc)).toString()); in testAddMathContextNonTrivial()
42 assertEquals("incorrect value", "223456789012345.68", res.toString()); in testAddMathContextNonTrivial()
48 assertEquals("Incorrect value!", "2234567890123456879012345678.90124", res.toString()); in testAddMathContextNonTrivial()
61 a.round(mc).subtract(b.round(mc)).toString()); in testSubtractMathContextNonTrivial()
63 assertEquals("incorrect value", "2345678901234566.9", res.toString()); in testSubtractMathContextNonTrivial()
71 assertEquals("incorrect value", "234567890123456699012345678.901239", res.toString()); in testSubtractMathContextNonTrivial()
84 assertEquals("incorrect value", "923456789012345670000000000000000", res.toString()); in testMultiplyMathContextNonTrivial()
86 assertEquals("incorrect value", "9.2345678901234567E+32", res.toString()); in testMultiplyMathContextNonTrivial()
[all …]
DBigDecimalTest.java51 String maxLong = Long.toString(Long.MAX_VALUE); in testGetPrecision()
53 String minLong = Long.toString(Long.MIN_VALUE); in testGetPrecision()
70 assertEquals("0.99", rounded.toString()); in testRound()
78 assertEquals("-0.011111111111111111111", a.toString()); in testPrecisionFromString()
79 assertEquals("-0.011111111111111111111", b.toString()); in testPrecisionFromString()
87 assertEquals("-11111111111111111111", a.unscaledValue().toString()); in testPrecisionFromString()
88 assertEquals("-11111111111111111111", b.unscaledValue().toString()); in testPrecisionFromString()
203 String expected = Long.toString(dividend); in testDivideByOne()
220 if (!a.toString().equals("0")) { in checkNegate()
230 assertEquals("-9223372036854775808", Long.toString(Long.MIN_VALUE)); in testAddAndSubtract_near64BitOverflow()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBuffer2Test.java52 && (sb.toString().equals("HelloWorld"))); in test_ConstructorLjava_lang_String()
73 "This is a test bufferchar", testBuffer.toString()); in test_append$C()
89 assertTrue("Buffer contains invalid chars", (sb.toString() in test_append$CII()
107 (sb.toString().equals("HW"))); in test_appendC()
120 "1.7976931348623157E308", sb.toString()); in test_appendD()
134 assertTrue("Buffer contains invalid characters", sb.toString().equals( in test_appendF()
150 "90001000", sb.toString()); in test_appendI()
165 "927654321098", sb.toString()); in test_appendJ()
179 assertTrue("Buffer contains invalid characters", sb.toString().equals( in test_appendLjava_lang_Object()
180 obj1.toString() + obj2.toString())); in test_appendLjava_lang_Object()
[all …]
DStringBuilderTest.java63 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_CharSequence()
67 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_CharSequence()
83 assertEquals("fixture", sb.toString()); in test_ConstructorLjava_lang_String()
99 assertEquals("true", sb.toString()); in test_appendZ()
102 assertEquals("false", sb.toString()); in test_appendZ()
111 assertEquals("a", sb.toString()); in test_appendC()
114 assertEquals("b", sb.toString()); in test_appendC()
123 assertEquals("ab", sb.toString()); in test_append$C()
126 assertEquals("cd", sb.toString()); in test_append$C()
141 assertEquals("ab", sb.toString()); in test_append$CII()
[all …]
DStringBufferTest.java41 assertEquals("abcde", buffer.toString()); in test_setLengthI()
44 assertEquals("af", buffer.toString()); in test_setLengthI()
50 assertEquals("abcf", buffer.toString()); in test_setLengthI()
96 assertEquals("", buffer.toString()); in test_toString()
99 assertEquals("abcde", buffer.toString()); in test_toString()
101 byte[] bytes = buffer.toString().getBytes("GB18030"); in test_toString()
108 assertEquals("abcdefghij", buffer.toString()); in test_toString()
121 …ertEquals("Assert 1: must equal 'abc'.", "abc", new StringBuffer((CharSequence) "abc").toString()); in test_constructorLjava_lang_CharSequence()
132 assertEquals("Assert 2: value must still be 'abc'.", "abc", buffer.toString()); in test_trimToSize()
141 assertEquals("ab", sb.toString()); in test_appendLjava_lang_CharSequence()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidStreamTokenizerTest.java39 assertEquals("Token[Testing], line 1", a.toString()); in testStreamTokenizer()
41 assertEquals("Token[n=12345.0], line 1", a.toString()); in testStreamTokenizer()
43 assertEquals("Token[alpha], line 2", a.toString()); in testStreamTokenizer()
45 assertEquals("Token[omega], line 3", a.toString()); in testStreamTokenizer()
47 assertEquals("Token[EOF], line 3", a.toString()); in testStreamTokenizer()
57 assertEquals("Token[n=-3.8], line 1", b.toString()); in testStreamTokenizer()
59 assertEquals("Token[BLIND mice], line 1", b.toString()); in testStreamTokenizer()
61 assertEquals("Token[EOL], line 2", b.toString()); in testStreamTokenizer()
63 assertEquals("Token[see], line 2", b.toString()); in testStreamTokenizer()
65 assertEquals("Token[the], line 2", b.toString()); in testStreamTokenizer()
[all …]
DOldWriterTest.java30 assertEquals("Wrong stuff written!", "ab", tobj.toString()); in test_appendChar()
43 assertEquals("Wrong stuff written!", testString, tobj.toString()); in test_appendCharSequence()
57 assertEquals("Wrong stuff written!", "01234", tobj.toString()); in test_appendCharSequenceIntInt()
59 assertEquals("Wrong stuff written!", "01234abcde", tobj.toString()); in test_appendCharSequenceIntInt()
61 assertEquals("Wrong stuff written!", "01234abcdeABCDEFGHIJ", tobj.toString()); in test_appendCharSequenceIntInt()
103 assertEquals("Wrong stuff written!", "01234", tobj.toString()); in test_write$C()
105 assertEquals("Wrong stuff written!", "01234abcde", tobj.toString()); in test_write$C()
107 assertEquals("Wrong stuff written!", "01234abcdeABCDEFGHIJ", tobj.toString()); in test_write$C()
121 assertEquals("Wrong stuff written!", "ab", tobj.toString()); in test_writeI()
133 assertEquals("Wrong stuff written!", "01234", tobj.toString()); in test_writeLjava_lang_String()
[all …]
DOldStreamTokenizerTest.java60 Assert.assertTrue(a.toString().equals("Token[Testing], line 1")); in test_basicStringTokenizerMethods()
62 Assert.assertTrue(a.toString().equals("Token[n=12345.0], line 1")); in test_basicStringTokenizerMethods()
64 Assert.assertTrue(a.toString().equals("Token[alpha], line 2")); in test_basicStringTokenizerMethods()
66 Assert.assertTrue(a.toString().equals("Token[omega], line 3")); in test_basicStringTokenizerMethods()
68 Assert.assertTrue(a.toString().equals("Token[EOF], line 3")); in test_basicStringTokenizerMethods()
78 Assert.assertTrue(b.toString().equals("Token[n=-3.8], line 1")); in test_basicStringTokenizerMethods()
80 Assert.assertTrue(b.toString().equals("Token[BLIND mice], line 1")); in test_basicStringTokenizerMethods()
82 Assert.assertTrue(b.toString().equals("Token[EOL], line 2")); in test_basicStringTokenizerMethods()
84 Assert.assertTrue(b.toString().equals("Token[see], line 2")); in test_basicStringTokenizerMethods()
86 Assert.assertTrue(b.toString().equals("Token[the], line 2")); in test_basicStringTokenizerMethods()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapExtendTest.java141 String key = new Integer(100).toString(); in test_TreeMap_Constructor_Map()
187 key = objArray[counter].toString(); in test_SubMap_containsKey()
201 key = objArray[100].toString(); in test_SubMap_containsKey()
213 key = objArray[109].toString(); in test_SubMap_containsKey()
227 key = objArray[counter].toString(); in test_SubMap_containsKey()
245 key = objArray[100].toString(); in test_SubMap_containsKey()
257 key = objArray[109].toString(); in test_SubMap_containsKey()
347 String firstKey1 = new Integer(100).toString(); in test_SubMap_firstKey()
348 String firstKey2 = new Integer(101).toString(); in test_SubMap_firstKey()
447 String lastKey1 = new Integer(108).toString(); in test_SubMap_lastKey()
[all …]
DTreeMapTest.java113 reversedTreeMap.put(new Integer(1).toString(), new Integer(1)); in test_ConstructorLjava_util_Comparator()
114 reversedTreeMap.put(new Integer(2).toString(), new Integer(2)); in test_ConstructorLjava_util_Comparator()
116 reversedTreeMap.firstKey().equals(new Integer(2).toString())); in test_ConstructorLjava_util_Comparator()
118 reversedTreeMap.lastKey().equals(new Integer(1).toString())); in test_ConstructorLjava_util_Comparator()
131 element.toString()).equals(element)); in test_ConstructorLjava_util_Map()
142 reversedTreeMap.put(new Integer(1).toString(), new Integer(1)); in test_ConstructorLjava_util_SortedMap()
143 reversedTreeMap.put(new Integer(2).toString(), new Integer(2)); in test_ConstructorLjava_util_SortedMap()
148 anotherTreeMap.firstKey().equals(new Integer(2).toString())); in test_ConstructorLjava_util_SortedMap()
150 anotherTreeMap.lastKey().equals(new Integer(1).toString())); in test_ConstructorLjava_util_SortedMap()
175 .get(element.toString()) == tm.get(element.toString())); in test_clone()
[all …]
DArrays2Test.java194 assertEquals("null", Arrays.toString((boolean[]) null)); in test_toString$Z()
195 assertEquals("[]", Arrays.toString(new boolean[] { })); in test_toString$Z()
196 assertEquals("[true]", Arrays.toString(new boolean[] { true })); in test_toString$Z()
197 assertEquals("[true, false]", Arrays.toString(new boolean[] { true, false })); in test_toString$Z()
198 assertEquals("[true, false, true]", Arrays.toString(new boolean[] { true, false, true })); in test_toString$Z()
205 assertEquals("null", Arrays.toString((byte[]) null)); in test_toString$B()
206 assertEquals("[]", Arrays.toString(new byte[] { })); in test_toString$B()
207 assertEquals("[0]", Arrays.toString(new byte[] { 0 })); in test_toString$B()
208 assertEquals("[-1, 0]", Arrays.toString(new byte[] { -1, 0 })); in test_toString$B()
209 assertEquals("[-1, 0, 1]", Arrays.toString(new byte[] { -1, 0, 1 })); in test_toString$B()
[all …]
/libcore/luni/src/test/java/libcore/sun/security/x509/
DAlgorithmIdTest.java30 assertEquals("1.3.14.3.2.26", AlgorithmId.get("SHA-1").getOID().toString()); in test_get_String()
31 assertEquals("1.3.14.3.2.26", AlgorithmId.get("SHA1").getOID().toString()); in test_get_String()
32 assertEquals("2.16.840.1.101.3.4.2.4", AlgorithmId.get("SHA-224").getOID().toString()); in test_get_String()
35 assertEquals("2.16.840.1.101.3.4.2.4", AlgorithmId.get("SHA224").getOID().toString()); in test_get_String()
37 assertEquals("2.16.840.1.101.3.4.2.1", AlgorithmId.get("SHA-256").getOID().toString()); in test_get_String()
40 assertEquals("2.16.840.1.101.3.4.2.1", AlgorithmId.get("SHA256").getOID().toString()); in test_get_String()
43 "2.16.840.1.101.3.4.3.1", AlgorithmId.get("SHA224WithDSA").getOID().toString()); in test_get_String()
45 "2.16.840.1.101.3.4.3.2", AlgorithmId.get("SHA256WithDSA").getOID().toString()); in test_get_String()
48 "2.16.840.1.101.3.4.3.1", AlgorithmId.get("sHA224withDSA").getOID().toString()); in test_get_String()
50 "2.16.840.1.101.3.4.3.2", AlgorithmId.get("sHA256withDSA").getOID().toString()); in test_get_String()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTestSupport.java106 storage.put(KEYS[i], str.toString()); in readFile()
181 hm.put(KEY_IS_END_DOC, data_isEndDocument.toString()); in createData()
182 hm.put(KEY_IS_START_DOC, data_isStartDocument.toString()); in createData()
183 hm.put(KEY_TEXT, data_text.toString()); in createData()
184 hm.put(KEY_ERROR, data_error.toString()); in createData()
185 hm.put(KEY_FATAL_ERROR, data_fatalError.toString()); in createData()
186 hm.put(KEY_WARNING, data_warning.toString()); in createData()
187 hm.put(KEY_END_ELEMENT, data_endElement.toString()); in createData()
188 hm.put(KEY_END_PREFIX_MAPPING, data_endPrefixMapping.toString()); in createData()
191 data_processingInstruction.toString()); in createData()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DURITest.java304 assertEquals("http://host/another", uri.toString()); in testRelativePathOnQuery()
313 assertEquals("http://host/file?query/x#another", uri.toString()); in testRelativeFragmentOnQuery()
326 assertEquals("http://host/another#fragment", base.resolve("another#fragment").toString()); in testRelativePathAndFragment()
331 assertEquals("http://host/a/d", base.resolve("../d").toString()); in testRelativeParentDirectory()
336 assertEquals("http://host/a/b/d/e", base.resolve("d/e").toString()); in testRelativeChildDirectory()
341 assertEquals("http://host/d", base.resolve("/d").toString()); in testRelativeRootDirectory()
346 assertEquals("http://host2/d/e", base.resolve("http://host2/d/e").toString()); in testRelativeFullUrl()
347 assertEquals("https://host2/d/e", base.resolve("https://host2/d/e").toString()); in testRelativeFullUrl()
352 assertEquals("https://host2/d/e", base.resolve("https://host2/d/e").toString()); in testRelativeDifferentScheme()
357 assertEquals("http://another/d/e", base.resolve("//another/d/e").toString()); in testRelativeDifferentAuthority()
[all …]
DURLTest.java563 assertEquals("http://host/another", url.toString()); in testRelativePathOnQuery()
573 assertEquals("http://host/file?query/x#another", url.toString()); in testRelativeFragmentOnQuery()
582 assertEquals("http://host/a/c", url.toString()); // RI doesn't canonicalize in testPathContainsRelativeParts()
607 assertEquals("http://host/another#fragment", new URL(base, "another#fragment").toString()); in testRelativePathAndFragment()
612 assertEquals("http://host/a/d", new URL(base, "../d").toString()); in testRelativeParentDirectory()
617 assertEquals("http://host/a/b/d/e", new URL(base, "d/e").toString()); in testRelativeChildDirectory()
622 assertEquals("http://host/d", new URL(base, "/d").toString()); in testRelativeRootDirectory()
627 assertEquals("http://host2/d/e", new URL(base, "http://host2/d/e").toString()); in testRelativeFullUrl()
628 assertEquals("https://host2/d/e", new URL(base, "https://host2/d/e").toString()); in testRelativeFullUrl()
633 assertEquals("https://host2/d/e", new URL(base, "https://host2/d/e").toString()); in testRelativeDifferentScheme()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DMessageDigestBenchmark.java66 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), in time()
67 provider.toString()); in time()
75 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), in timeLargeArray()
76 provider.toString()); in timeLargeArray()
84 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), in timeSmallChunkOfLargeArray()
85 provider.toString()); in timeSmallChunkOfLargeArray()
93 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), in timeSmallByteBuffer()
94 provider.toString()); in timeSmallByteBuffer()
104 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), in timeSmallDirectByteBuffer()
105 provider.toString()); in timeSmallDirectByteBuffer()
[all …]
DIntegralToStringBenchmark.java27 Integer.toString(SMALL); in time_IntegerToString_small()
33 Integer.toString(MEDIUM); in time_IntegerToString_medium()
39 Integer.toString(LARGE); in time_IntegerToString_large()
45 Integer.toString(SMALL, 2); in time_IntegerToString2_small()
51 Integer.toString(MEDIUM, 2); in time_IntegerToString2_medium()
57 Integer.toString(LARGE, 2); in time_IntegerToString2_large()
63 Integer.toString(SMALL, 10); in time_IntegerToString10_small()
69 Integer.toString(MEDIUM, 10); in time_IntegerToString10_medium()
75 Integer.toString(LARGE, 10); in time_IntegerToString10_large()
81 Integer.toString(SMALL, 16); in time_IntegerToString16_small()
[all …]
/libcore/luni/src/main/java/libcore/util/
DObjects.java31 public static String toString(Object o) { in toString() method in Objects
53 sb.append(Arrays.toString((boolean[]) value)); in toString()
55 sb.append(Arrays.toString((byte[]) value)); in toString()
57 sb.append(Arrays.toString((char[]) value)); in toString()
59 sb.append(Arrays.toString((double[]) value)); in toString()
61 sb.append(Arrays.toString((float[]) value)); in toString()
63 sb.append(Arrays.toString((int[]) value)); in toString()
65 sb.append(Arrays.toString((long[]) value)); in toString()
67 sb.append(Arrays.toString((short[]) value)); in toString()
69 sb.append(Arrays.toString((Object[]) value)); in toString()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalTest.java54 .toString().equals("123345.60000")); in test_ConstructorLjava_math_BigIntegerI()
64 big.toString().equals("1230000")); in test_ConstructorD()
96 .toString().equals("345.23499600293850") in test_ConstructorLjava_lang_String()
100 .toString().equals("-12345") in test_ConstructorLjava_lang_String()
104 .toString().equals("123") in test_ConstructorLjava_lang_String()
173 assertTrue("the absolute value of -1234 is not 1234", bigabs.toString() in test_abs()
178 .toString().equals("23.45")); in test_abs()
189 .toString().equals("3872691") in test_addLjava_math_BigDecimal()
192 .toString().equals("3872.691")); in test_addLjava_math_BigDecimal()
195 (add1.add(add3)).toString().equals("1257.456")); in test_addLjava_math_BigDecimal()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java29 assertEquals("{}", bs.toString()); in test_toString()
31 assertEquals("{2}", bs.toString()); in test_toString()
34 assertEquals("{2, 4, 10}", bs.toString()); in test_toString()
47 assertEquals("{2147483647}", bitSet.toString()); in test_toString_highestPossibleBitSet()
55 assertEquals(bs.toString(), ((longs[i / 64] & (1L << (i % 64))) != 0), bs.get(i)); in assertBitSet()
68 assertEquals(s, bs.toString()); in assertBitSet()
99 assertEquals(bs.toString(), ((bytes[i / 8] & (1L << (i % 8))) != 0), bs.get(i)); in assertBitSet()
112 assertEquals(s, bs.toString()); in assertBitSet()
156 assertEquals("[]", Arrays.toString(BitSet.valueOf(new long[0]).toLongArray())); in test_toLongArray()
157 assertEquals("[1]", Arrays.toString(BitSet.valueOf(new long[] { 1 }).toLongArray())); in test_toLongArray()
[all …]
DOldFormatterTest.java50 assertEquals("aaa 111?", new Formatter().format("aaa %s?", ones).toString()); in test_Formattable()
51 … assertEquals("aaa 111 bbb 222?", new Formatter().format("aaa %s bbb %s?", ones, twos).toString()); in test_Formattable()
65 assertFalse(fLoc.toString().equals(fNoL.toString())); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object()
71 assertFalse(fLoc.toString().equals(fNoL.toString())); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object()
77 assertTrue(fLoc.toString().equals(fNoL.toString())); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object()
83 assertFalse(fLoc.toString().equals(fNoL.toString())); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object()
89 assertFalse(fLoc.toString().equals(fNoL.toString())); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object()
95 assertTrue(fLoc.toString().equals(fNoL.toString())); in test_formatLjava_util_LocaleLjava_lang_StringLjava_lang_Object()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestPadPrinterDecorator.java79 assertEquals(buf.toString(), "--Z"); in test_print_emptyCalendrical()
85 assertEquals(buf.toString(), "--Z"); in test_print_fullDateTime()
92 assertEquals(buf.toString(), "EXISTING--Z"); in test_print_append()
99 assertEquals(buf.toString(), "Z"); in test_print_noPadRequiredSingle()
105 assertEquals(buf.toString(), "----Z"); in test_print_padRequiredSingle()
111 assertEquals(buf.toString(), "WXYZ"); in test_print_noPadRequiredMultiple()
117 assertEquals(buf.toString(), "-WXYZ"); in test_print_padRequiredMultiple()
129 assertEquals(getFormatter().toString(), "Pad('Y',5)"); in test_toString1()
134 assertEquals(getFormatter().toString(), "Pad('Y',5,'-')"); in test_toString2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DStringWriterTest.java54 assertEquals("Failed to flush char", "c", sw.toString()); in test_flush()
67 "This is a test string", sb.toString()); in test_getBuffer()
77 "This is a test string", sw.toString()); in test_toString()
89 "This is a test string", sw.toString()); in test_write$CII()
138 assertEquals("Char not written properly", "c", sw.toString()); in test_writeI()
148 "This is a test string", sw.toString()); in test_writeLjava_lang_String()
158 assertEquals("String not written properly", "is", sw.toString()); in test_writeLjava_lang_StringII()
168 assertEquals(String.valueOf(testChar), stringWriter.toString()); in test_appendChar()
180 assertEquals(String.valueOf(testString), stringWriter.toString()); in test_appendCharSequence()
191 assertEquals(testString.substring(1, 3), stringWriter.toString()); in test_appendCharSequenceIntInt()

12345678910>>...55