Lines Matching defs:encloses
307 assertTrue(range.encloses(range));
308 assertTrue(range.encloses(Ranges.open(2, 4)));
309 assertTrue(range.encloses(Ranges.open(3, 5)));
310 assertTrue(range.encloses(Ranges.closed(3, 4)));
312 assertFalse(range.encloses(Ranges.openClosed(2, 5)));
313 assertFalse(range.encloses(Ranges.closedOpen(2, 5)));
314 assertFalse(range.encloses(Ranges.closed(1, 4)));
315 assertFalse(range.encloses(Ranges.closed(3, 6)));
316 assertFalse(range.encloses(Ranges.greaterThan(3)));
317 assertFalse(range.encloses(Ranges.lessThan(3)));
318 assertFalse(range.encloses(Ranges.atLeast(3)));
319 assertFalse(range.encloses(Ranges.atMost(3)));
320 assertFalse(range.encloses(Ranges.<Integer>all()));
325 assertTrue(range.encloses(range));
326 assertTrue(range.encloses(Ranges.open(2, 5)));
327 assertTrue(range.encloses(Ranges.openClosed(2, 5)));
328 assertTrue(range.encloses(Ranges.closedOpen(2, 5)));
329 assertTrue(range.encloses(Ranges.closed(3, 5)));
330 assertTrue(range.encloses(Ranges.closed(2, 4)));
332 assertFalse(range.encloses(Ranges.open(1, 6)));
333 assertFalse(range.encloses(Ranges.greaterThan(3)));
334 assertFalse(range.encloses(Ranges.lessThan(3)));
335 assertFalse(range.encloses(Ranges.atLeast(3)));
336 assertFalse(range.encloses(Ranges.atMost(3)));
337 assertFalse(range.encloses(Ranges.<Integer>all()));