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/020-string/ |
D | expected.txt | 1 testStr is 'This is a very nice string'
|
/art/test/082-inline-execute/src/ |
D | Main.java | 142 String testStr = "Now is the time to test some stuff"; in test_String_charAt() local 144 Assert.assertEquals(testStr.length() - 1, 33); // 33 = testStr.length()-1 as a constant. in test_String_charAt() 145 Assert.assertEquals('f', testStr.charAt(33)); in test_String_charAt() 147 test_String_charAt(testStr, 'N', 'o', ' ', 'f'); in test_String_charAt() 148 test_String_charAt(testStr.substring(3,15), ' ', 'i', 'm', 'e'); in test_String_charAt() 150 public static void test_String_charAt(String testStr, char a, char b, char c, char d) { in test_String_charAt() argument 151 Assert.assertEquals(a, testStr.charAt(0)); in test_String_charAt() 152 Assert.assertEquals(b, testStr.charAt(1)); in test_String_charAt() 153 Assert.assertEquals(c, testStr.charAt(10)); in test_String_charAt() 154 Assert.assertEquals(d, testStr.charAt(testStr.length()-1)); in test_String_charAt() [all …]
|