Lines Matching refs:expectEquals
43 t.expectEquals(0, dnsDomainLevels("www"));
44 t.expectEquals(2, dnsDomainLevels("www.google.com"));
45 t.expectEquals(3, dnsDomainLevels("192.168.1.1"));
80 t.expectEquals("::1;::2;::3", sortIpAddressList("::2;::3;::1"));
81 t.expectEquals(
88 t.expectEquals("127.0.0.1", sortIpAddressList("127.0.0.1"));
89 t.expectEquals("::1", sortIpAddressList("::1"))
92 t.expectEquals("0:0::1;192.168.1.1", sortIpAddressList("192.168.1.1;0:0::1"));
95 t.expectEquals("::1;192.168.1.3", sortIpAddressList("::1;192.168.1.3"));
98 t.expectEquals("0::1;::1;0:0::1", sortIpAddressList("0::1;::1;0:0::1"));
101 t.expectEquals("127.0.0.1", sortIpAddressList(";127.0.0.1;"));
104 t.expectEquals("192.168.0.1;192.168.0.2",
106 t.expectEquals("127.0.0.0;127.0.0.1;127.0.0.2",
121 t.expectEquals(null, sortIpAddressList());
122 t.expectEquals(null, sortIpAddressList(null));
123 t.expectEquals(null, sortIpAddressList(null, null));
145 t.expectEquals(null, isInNetEx());
146 t.expectEquals(null, isInNetEx(null));
147 t.expectEquals(null, isInNetEx(null, null));
148 t.expectEquals(null, isInNetEx(null, null, null));
149 t.expectEquals(null, isInNetEx("198.95.249.79"));
163 t.expectEquals(true, weekdayRange("MON", "FRI"));
164 t.expectEquals(true, weekdayRange("TUE", "FRI"));
165 t.expectEquals(true, weekdayRange("TUE", "TUE"));
166 t.expectEquals(true, weekdayRange("TUE"));
167 t.expectEquals(false, weekdayRange("WED", "FRI"));
168 t.expectEquals(false, weekdayRange("SUN", "MON"));
169 t.expectEquals(false, weekdayRange("SAT"));
170 t.expectEquals(false, weekdayRange("FRI", "MON"));
174 t.expectEquals(true, weekdayRange("MON", "FRI", "GMT"));
175 t.expectEquals(true, weekdayRange("TUE", "FRI", "GMT"));
176 t.expectEquals(true, weekdayRange("TUE", "TUE", "GMT"));
177 t.expectEquals(true, weekdayRange("TUE", "GMT"));
178 t.expectEquals(false, weekdayRange("WED", "FRI", "GMT"));
179 t.expectEquals(false, weekdayRange("SUN", "MON", "GMT"));
180 t.expectEquals(false, weekdayRange("SAT", "GMT"));
186 t.expectEquals(true, dateRange(3));
187 t.expectEquals(false, dateRange(1));
191 t.expectEquals(true, dateRange(3, "GMT"));
192 t.expectEquals(false, dateRange(1, "GMT"));
196 t.expectEquals(true, dateRange(1, 4));
197 t.expectEquals(false, dateRange(4, 20));
201 t.expectEquals(true, dateRange(3, "MAR"));
203 t.expectEquals(true, dateRange(3, "MAR"));
210 t.expectEquals(true, dateRange(3, "MAR", 2009));
211 t.expectEquals(false, dateRange(4, "MAR", 2009));
212 t.expectEquals(false, dateRange(3, "FEB", 2009));
214 t.expectEquals(false, dateRange(3, "MAR", 2009));
218 t.expectEquals(true, dateRange("JAN", "MAR"));
219 t.expectEquals(true, dateRange("MAR", "APR"));
220 t.expectEquals(false, dateRange("MAY", "SEP"));
224 t.expectEquals(true, dateRange(1, "JAN", 3, "MAR"));
225 t.expectEquals(true, dateRange(3, "MAR", 4, "SEP"));
226 t.expectEquals(false, dateRange(4, "MAR", 4, "SEP"));
230 t.expectEquals(true, dateRange("FEB", 2009, "MAR", 2009));
232 t.expectEquals(true, dateRange("FEB", 2009, "MAR", 2010));
233 t.expectEquals(false, dateRange("FEB", 2009, "MAR", 2009));
237 t.expectEquals(true, dateRange(1, "JAN", 2009, 3, "MAR", 2009));
238 t.expectEquals(true, dateRange(3, "MAR", 2009, 4, "SEP", 2009));
239 t.expectEquals(true, dateRange(3, "JAN", 2009, 4, "FEB", 2010));
240 t.expectEquals(false, dateRange(4, "MAR", 2009, 4, "SEP", 2009));
246 t.expectEquals(true, timeRange(3));
247 t.expectEquals(false, timeRange(2));
251 t.expectEquals(true, timeRange(2, 3));
252 t.expectEquals(true, timeRange(2, 4));
253 t.expectEquals(true, timeRange(3, 5));
254 t.expectEquals(false, timeRange(1, 2));
255 t.expectEquals(false, timeRange(11, 12));
259 t.expectEquals(true, timeRange(1, 0, 3, 34));
260 t.expectEquals(true, timeRange(1, 0, 3, 35));
261 t.expectEquals(true, timeRange(3, 34, 5, 0));
262 t.expectEquals(false, timeRange(1, 0, 3, 0));
263 t.expectEquals(false, timeRange(11, 0, 16, 0));
267 t.expectEquals(true, timeRange(1, 0, 0, 3, 34, 14));
268 t.expectEquals(false, timeRange(1, 0, 0, 3, 34, 0));
269 t.expectEquals(true, timeRange(1, 0, 0, 3, 35, 0));
270 t.expectEquals(true, timeRange(3, 34, 0, 5, 0, 0));
271 t.expectEquals(false, timeRange(1, 0, 0, 3, 0, 0));
272 t.expectEquals(false, timeRange(11, 0, 0, 16, 0, 0));
290 TestContext.prototype.expectEquals = function(expectation, actual) { method in TestContext
298 this.expectEquals(true, x);
302 this.expectEquals(false, x);