Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testIntersection (0.14 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. 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