Home | History | Annotate | Download | only in src

Lines Matching refs:Assert

25 import junit.framework.Assert;
51 assert(str0.length() == len0);
52 assert(str1.length() == len1);
53 assert(str80.length() == len80);
75 assert(at0 == testStr.charAt(0));
76 assert(at1 == testStr.charAt(1));
77 assert(at10 == testStr.charAt(10));
78 assert(atLast == testStr.charAt(testStr.length()-1));
95 assert(numNotThrown == 0);
108 assert(str0.indexOf('a') == -1);
109 assert(str3.indexOf('a') == 0);
110 assert(str3.indexOf('b') == 1);
111 assert(str3.indexOf('c') == 2);
112 assert(str10.indexOf('j') == 9);
113 assert(str40.indexOf('a') == 0);
114 assert(str40.indexOf('b') == 38);
115 assert(str40.indexOf('c') == 39);
116 assert(str0.indexOf('a',20) == -1);
117 assert(str0.indexOf('a',0) == -1);
118 assert(str0.indexOf('a',-1) == -1);
119 assert(str3.indexOf('a',0) == 0);
120 assert(str3.indexOf('a',1) == -1);
121 assert(str3.indexOf('a',1234) == -1);
122 assert(str3.indexOf('b',0) == 1);
123 assert(str3.indexOf('b',1) == 1);
124 assert(str3.indexOf('c',2) == 2);
125 assert(str10.indexOf('j',5) == 9);
126 assert(str10.indexOf('j',9) == 9);
127 assert(str40.indexOf('a',10) == 10);
128 assert(str40.indexOf('b',40) == -1);
147 Assert.assertTrue(y.equals(uc));
150 Assert.assertEquals(str32.compareTo(str33), -1);
151 Assert.assertEquals(str33.compareTo(str32), 1);
153 Assert.assertTrue(test.equals(test));
154 Assert.assertTrue(test.equals(test1));
155 Assert.assertFalse(test.equals(test2));
157 Assert.assertEquals(test.compareTo(test1), 0);
158 Assert.assertTrue(test1.compareTo(test2) > 0);
159 Assert.assertTrue(test2.compareTo(test1) < 0);
162 Assert.assertEquals(test.compareTo(sub), 0);
163 Assert.assertEquals(sub.compareTo(test), 0);
164 Assert.assertTrue(test.equals(sub));
165 Assert.assertTrue(sub.equals(test));
167 Assert.assertFalse(offset.equals(sub));
168 Assert.assertFalse(sub.equals(offset));
170 Assert.assertFalse(test.equals(blah));
175 Assert.fail("didn't get expected npe");
179 Assert.assertFalse(test.equals(null));
182 Assert.assertTrue(test.equals("123456789"));
183 Assert.assertFalse(test.equals(test1));
186 Assert.assertTrue(test.equals("23456789"));
189 Assert.assertTrue(test.equals("3456789"));
192 Assert.assertTrue(test.equals("456789"));
195 Assert.assertTrue(test.equals("78"));
199 Assert.assertEquals(4, strings.length);
201 Assert.assertEquals("this is a path", test.replaceAll("/", " "));
202 Assert.assertEquals("this is a path", test.replace("/", " "));