Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testIntersection (0.1 sec)

  1. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertEquals(
            ImmutableSet.of(),
            ContiguousSet.create(Range.closed(-5, -1), integers())
                .intersection(ContiguousSet.create(Range.open(3, 64), integers())));
      }
    
      public void testIntersection() {
        ContiguousSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers());
        assertEquals(
            ImmutableSet.of(1, 2, 3),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetOperationsTest.java

        enemies.add("Buck");
        assertEquals(6, all.size());
        assertEquals(5, immut.size());
        assertEquals(5, mut.size());
      }
    
      public void testIntersection() {
        Set<String> friends = newHashSet("Tom", "Joe", "Dave");
        Set<String> enemies = newHashSet("Dick", "Harry", "Tom");
    
        Set<String> frenemies = Sets.intersection(friends, enemies);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SetOperationsTest.java

        enemies.add("Buck");
        assertEquals(6, all.size());
        assertEquals(5, immut.size());
        assertEquals(5, mut.size());
      }
    
      public void testIntersection() {
        Set<String> friends = newHashSet("Tom", "Joe", "Dave");
        Set<String> enemies = newHashSet("Dick", "Harry", "Tom");
    
        Set<String> frenemies = Sets.intersection(friends, enemies);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertEquals(
            ImmutableSet.of(),
            ContiguousSet.create(Range.closed(-5, -1), integers())
                .intersection(ContiguousSet.create(Range.open(3, 64), integers())));
      }
    
      public void testIntersection() {
        ContiguousSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers());
        assertEquals(
            ImmutableSet.of(1, 2, 3),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

                .add(Range.openClosed(15, 17))
                .add(Range.open(19, 20))
                .build();
    
        assertThat(RANGE_SET_ONE.union(RANGE_SET_TWO)).isEqualTo(expected);
      }
    
      public void testIntersection() {
        RangeSet<Integer> expected =
            ImmutableRangeSet.<Integer>builder()
                .add(Range.closed(2, 3))
                .add(Range.open(6, 7))
                .add(Range.singleton(8))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            // overlap
            checkInvalidRange("[1.1,1.3),(1.0,1.2]");
            // ordering
            checkInvalidRange("(1.1,1.2],[1.0,1.1)");
        }
    
        @Test
        void testIntersections() throws InvalidVersionSpecificationException {
            VersionRange range1 = VersionRange.createFromVersionSpec("1.0");
            VersionRange range2 = VersionRange.createFromVersionSpec("1.1");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 44.3K bytes
    - Viewed (0)
Back to top