Searched refs:testStr (Results 1 – 3 of 3) sorted by relevance
/art/test/020-string/src/ |
D | Main.java | 33 String testStr; in basicTest() local 36 testStr = baseStr.substring(4, baseStr.length() - 3); in basicTest() 37 System.out.println("testStr is '" + testStr + "'"); in basicTest() 40 for (i = 0; i < testStr.length(); i++) in basicTest() 41 System.out.print(testStr.charAt(i)); in basicTest() 45 if (testStr.length() != testStr2.length()) in basicTest() 48 int compareResult = testStr.compareTo(testStr2); in basicTest() 63 testStr.charAt(500); in basicTest()
|
/art/test/082-inline-execute/src/ |
D | Main.java | 145 String testStr = "Now is the time to test some stuff"; in test_String_charAt() local 147 Assert.assertEquals(testStr.length() - 1, 33); // 33 = testStr.length()-1 as a constant. in test_String_charAt() 148 Assert.assertEquals('f', testStr.charAt(33)); in test_String_charAt() 150 test_String_charAt(testStr, 'N', 'o', ' ', 'f'); in test_String_charAt() 151 test_String_charAt(testStr.substring(3,15), ' ', 'i', 'm', 'e'); in test_String_charAt() 153 public static void test_String_charAt(String testStr, char a, char b, char c, char d) { in test_String_charAt() argument 154 Assert.assertEquals(a, testStr.charAt(0)); in test_String_charAt() 155 Assert.assertEquals(b, testStr.charAt(1)); in test_String_charAt() 156 Assert.assertEquals(c, testStr.charAt(10)); in test_String_charAt() 157 Assert.assertEquals(d, testStr.charAt(testStr.length()-1)); in test_String_charAt() [all …]
|
/art/test/020-string/ |
D | expected-stdout.txt | 1 testStr is 'This is a very nice string'
|