Home
last modified time | relevance | path

Searched refs:closedOpen (Results 1 – 11 of 11) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DImmutableRangeSetTest.java44 Range.closedOpen(3, 5),
51 Range.closedOpen(1, 3),
109 builder.add(Range.closedOpen(i, i.add(BigInteger.ONE))); in create()
165 ImmutableRangeSet<Integer> rangeSet = ImmutableRangeSet.of(Range.closedOpen(1, 5)); in testSingleBoundedRange()
167 assertThat(rangeSet.asRanges()).has().item(Range.closedOpen(1, 5)); in testSingleBoundedRange()
170 assertTrue(rangeSet.encloses(Range.closedOpen(1, 4))); in testSingleBoundedRange()
171 assertTrue(rangeSet.encloses(Range.closedOpen(1, 5))); in testSingleBoundedRange()
192 assertFalse(rangeSet.encloses(Range.closedOpen(1, 5))); in testSingleBoundedBelowRange()
209 assertFalse(rangeSet.encloses(Range.closedOpen(1, 5))); in testSingleBoundedAboveRange()
221 .add(Range.closed(5, 8)).add(Range.closedOpen(1, 3)).build(); in testMultipleBoundedRanges()
[all …]
DRangeTest.java108 Range<Integer> range = Range.closedOpen(5, 8); in testClosedOpen()
128 assertFalse(Range.closed(3, 5).isConnected(Range.closedOpen(7, 7))); in testIsConnected()
155 Range<Integer> range = Range.closedOpen(4, 4); in testEmpty1()
317 assertFalse(range.encloses(Range.closedOpen(2, 5))); in testEncloses_open()
332 assertTrue(range.encloses(Range.closedOpen(2, 5))); in testEncloses_closed()
345 Range<Integer> range = Range.closedOpen(3, 3); in testIntersection_empty()
366 assertEquals(Range.closedOpen(4, 4), in testIntersection_deFactoEmpty()
394 assertEquals(Range.closedOpen(3, 3), in testIntersection_singleton()
422 assertEquals(Range.closedOpen(4, 4), in testIntersection_general()
423 range.intersection(Range.closedOpen(2, 4))); in testIntersection_general()
[all …]
DTreeRangeSetTest.java53 queryBuilder.add(Range.closedOpen(i, i)); in Range.closedOpen()
292 assertThat(rangeSet.asRanges()).has().item(Range.closedOpen(1, 6)); in testMergesConnectedWithOverlap()
302 assertThat(rangeSet.asRanges()).has().item(Range.closedOpen(1, 6)); in testMergesConnectedDisjoint()
379 rangeSet.add(Range.closedOpen(3, 3)); in testAddEmpty()
387 rangeSet.add(Range.closedOpen(1, 3)); in testFillHoleExactly()
388 rangeSet.add(Range.closedOpen(4, 6)); in testFillHoleExactly()
389 rangeSet.add(Range.closedOpen(3, 4)); in testFillHoleExactly()
391 assertThat(rangeSet.asRanges()).has().item(Range.closedOpen(1, 6)); in testFillHoleExactly()
398 rangeSet.add(Range.closedOpen(1, 3)); in testFillHoleWithOverlap()
399 rangeSet.add(Range.closedOpen(4, 6)); in testFillHoleWithOverlap()
[all …]
DContiguousSetTest.java79 ContiguousSet.create(Range.closedOpen(1, 4), integers()), in testEquals()
83 ContiguousSet.create(Range.closedOpen(1, 4), NOT_EQUAL_TO_INTEGERS), in testEquals()
102 ContiguousSet<Integer> empty = ContiguousSet.create(Range.closedOpen(1, 1), integers()); in testSerialization()
138 assertEquals(ImmutableSet.of(), ContiguousSet.create(Range.closedOpen(1, 1), integers())); in testCreate_empty()
258 ContiguousSet.create(Range.closedOpen(1, 4), integers()).range()); in testRange()
266 ContiguousSet.create(Range.closedOpen(1, 4), integers()).range(OPEN, CLOSED)); in testRange()
275 ContiguousSet.create(Range.closedOpen(1, 4), integers()).range(OPEN, OPEN)); in testRange()
281 assertEquals(Range.closedOpen(1, 4), in testRange()
283 assertEquals(Range.closedOpen(1, 4), in testRange()
284 ContiguousSet.create(Range.closedOpen(1, 4), integers()).range(CLOSED, OPEN)); in testRange()
[all …]
DTreeRangeMapTest.java52 mapEntry(Range.closedOpen(3, 5), "frisbee"), in suite()
107 mapEntry(Range.closedOpen(3, 5), "frisbee"), in suite()
373 assertEquals(ImmutableMap.of(Range.closedOpen(5, 7), 1, Range.closed(9, 10), 2), in testSubSubRangeMap()
386 assertEquals(ImmutableMap.of(Range.closedOpen(5, 7), 1, Range.closed(9, 10), 2), in testSubRangeMapPut()
391 Range.closedOpen(5, 7), 1, Range.closed(7, 9), 4, Range.openClosed(9, 10), 2), in testSubRangeMapPut()
404 sub = sub.subRangeMap(Range.closedOpen(5, 5)); in testSubRangeMapPut()
405 sub.put(Range.closedOpen(5, 5), 6); // should be a no-op in testSubRangeMapPut()
418 assertEquals(ImmutableMap.of(Range.closedOpen(5, 7), 1, Range.closed(9, 10), 2), in testSubRangeMapRemove()
422 ImmutableMap.of(Range.closedOpen(5, 7), 1, Range.openClosed(9, 10), 2), in testSubRangeMapRemove()
DImmutableRangeMapTest.java70 builder.put(Range.closedOpen(i, i), 1); in testBuilderRejectsEmptyRanges()
175 builder.put(Range.closedOpen(i, i + 1), i); in testGetLargeRangeMap()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DContiguousSetTest.java62 ContiguousSet.create(Range.closedOpen(1, 4), integers()), in testEquals()
66 ContiguousSet.create(Range.closedOpen(1, 4), NOT_EQUAL_TO_INTEGERS), in testEquals()
100 assertEquals(ImmutableSet.of(), ContiguousSet.create(Range.closedOpen(1, 1), integers())); in testCreate_empty()
220 ContiguousSet.create(Range.closedOpen(1, 4), integers()).range()); in testRange()
228 ContiguousSet.create(Range.closedOpen(1, 4), integers()).range(OPEN, CLOSED)); in testRange()
237 ContiguousSet.create(Range.closedOpen(1, 4), integers()).range(OPEN, OPEN)); in testRange()
243 assertEquals(Range.closedOpen(1, 4), in testRange()
245 assertEquals(Range.closedOpen(1, 4), in testRange()
246 ContiguousSet.create(Range.closedOpen(1, 4), integers()).range(CLOSED, OPEN)); in testRange()
247 assertEquals(Range.closedOpen(1, 4), in testRange()
[all …]
/external/turbine/java/com/google/turbine/diag/
DLineMap.java50 builder.put(Range.closedOpen(last, idx + 1), line++); in create()
59 builder.put(Range.closedOpen(last, source.length()), line++); in create()
/external/guava/guava/src/com/google/common/collect/
DRange.java188 public static <C extends Comparable<?>> Range<C> closedOpen( in closedOpen() method in Range
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DSetGenerators.java344 (elements.isEmpty()) ? Range.closedOpen(0, 0) : Range.encloseAll(elements); in checkedCreate()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSetGenerators.java384 (elements.isEmpty()) ? Range.closedOpen(0, 0) : Range.encloseAll(elements); in checkedCreate()