Home
last modified time | relevance | path

Searched refs:testBuffer (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DOldStringBufferTest.java24 StringBuffer testBuffer = new StringBuffer("This is a test buffer"); field in OldStringBufferTest
28 testBuffer.deleteCharAt(testBuffer.length() + 1); in test_deleteCharAtI()
35 testBuffer.deleteCharAt(-1); in test_deleteCharAtI()
95 testBuffer.insert(-1, Double.MAX_VALUE); in test_insertID()
102 testBuffer.insert(testBuffer.length() + 1, Double.MAX_VALUE); in test_insertID()
111 testBuffer.insert(-1, Float.MAX_VALUE); in test_insertIF()
118 testBuffer.insert(testBuffer.length() + 1, Float.MAX_VALUE); in test_insertIF()
127 testBuffer.insert(-1, Integer.MAX_VALUE); in test_insertII()
134 testBuffer.insert(testBuffer.length() + 1, Integer.MAX_VALUE); in test_insertII()
143 testBuffer.insert(-1, Long.MAX_VALUE); in test_insertIJ()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBuffer2Test.java22 StringBuffer testBuffer; field in StringBuffer2Test
71 testBuffer.append(buf); in test_append$C()
73 "This is a test bufferchar", testBuffer.toString()); in test_append$C()
231 assertEquals("Returned incorrect char", 's', testBuffer.charAt(3)); in test_charAtI()
236 testBuffer.charAt(-1); in test_charAtI()
250 testBuffer.delete(7, 7); in test_deleteII()
251 … assertEquals("Deleted chars when start == end", "This is a test buffer", testBuffer.toString() in test_deleteII()
253 testBuffer.delete(4, 14); in test_deleteII()
255 "This buffer", testBuffer.toString()); in test_deleteII()
257 testBuffer = new StringBuffer("This is a test buffer"); in test_deleteII()
[all …]
/libcore/ojluni/src/test/java/lang/StringBuffer/
DIndexOf.java148 StringBuffer testBuffer = new StringBuffer(len); in compareStringStringBuffer() local
149 testBuffer.append(testString); in compareStringStringBuffer()
150 if (!testString.equals(testBuffer.toString())) in compareStringStringBuffer()
163 int sbAnswer = testBuffer.indexOf(fragment); in compareStringStringBuffer()
171 sbAnswer = testBuffer.indexOf(fragment, testIndex); in compareStringStringBuffer()
177 sbAnswer = testBuffer.lastIndexOf(fragment); in compareStringStringBuffer()
185 sbAnswer = testBuffer.lastIndexOf(fragment, testIndex); in compareStringStringBuffer()