Lines Matching refs:testStr
58 String testStr = "Now is the time"; in stringCharAtTest() local
60 int over = testStr.length(); in stringCharAtTest()
63 int at0 = testStr.charAt(0); in stringCharAtTest()
64 int at1 = testStr.charAt(1); in stringCharAtTest()
65 int at10 = testStr.charAt(10); in stringCharAtTest()
66 int atLast = testStr.charAt(testStr.length()-1); in stringCharAtTest()
69 System.out.println(testStr + "[0] = \"" + (char)at0 + "\""); in stringCharAtTest()
70 System.out.println(testStr + "[1] = \"" + (char)at1 + "\""); in stringCharAtTest()
71 System.out.println(testStr + "[10] = \"" + (char)at10 + "\""); in stringCharAtTest()
72 System.out.println(testStr + "[last] = \"" + (char)atLast + "\""); in stringCharAtTest()
75 assert(at0 == testStr.charAt(0)); in stringCharAtTest()
76 assert(at1 == testStr.charAt(1)); in stringCharAtTest()
77 assert(at10 == testStr.charAt(10)); in stringCharAtTest()
78 assert(atLast == testStr.charAt(testStr.length()-1)); in stringCharAtTest()
83 testStr.charAt(under); in stringCharAtTest()
89 testStr.charAt(over); in stringCharAtTest()