Lines Matching refs:testStr
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()
156 test_String_charAtExc(testStr); in test_String_charAt()
157 test_String_charAtExc2(testStr); in test_String_charAt()
160 private static void test_String_charAtExc(String testStr) { in test_String_charAtExc() argument
162 testStr.charAt(-1); in test_String_charAtExc()
167 testStr.charAt(80); in test_String_charAtExc()
172 if (testStr.length() == 34) { in test_String_charAtExc()
173 testStr.charAt(34); // 34 = "Now is the time to test some stuff".length() in test_String_charAtExc()
175 Assert.assertEquals(testStr.length(), 12); // 12 = " is the time".length() in test_String_charAtExc()
176 testStr.charAt(12); in test_String_charAtExc()
182 test_String_charAt_inner(testStr, -1); in test_String_charAtExc()
187 test_String_charAt_inner(testStr, 80); in test_String_charAtExc()
192 if (testStr.length() == 34) { in test_String_charAtExc()
194 test_String_charAt_inner(testStr, 34); in test_String_charAtExc()
196 Assert.assertEquals(testStr.length(), 12); // 12 = " is the time".length() in test_String_charAtExc()
197 test_String_charAt_inner(testStr, 12); in test_String_charAtExc()
223 private static void test_String_charAtExc2(String testStr) { in test_String_charAtExc2() argument
225 test_String_charAtExc3(testStr); in test_String_charAtExc2()
230 test_String_charAtExc4(testStr); in test_String_charAtExc2()
236 private static void test_String_charAtExc3(String testStr) { in test_String_charAtExc3() argument
237 Assert.assertEquals('N', testStr.charAt(-1)); in test_String_charAtExc3()
240 private static void test_String_charAtExc4(String testStr) { in test_String_charAtExc4() argument
241 Assert.assertEquals('N', testStr.charAt(100)); in test_String_charAtExc4()