Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testHeadSet (0.08 sec)

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

        assertEquals(
            ImmutableSet.of(), ContiguousSet.create(Range.greaterThan(Integer.MAX_VALUE), integers()));
      }
    
      public void testHeadSet() {
        ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers());
        assertThat(set.headSet(1)).isEmpty();
        assertThat(set.headSet(2)).containsExactly(1).inOrder();
    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/FilteredCollectionsTestUtil.java

            } catch (NoSuchElementException e) {
              assertTrue(filtered.isEmpty());
            }
          }
        }
    
        @SuppressWarnings("unchecked")
        public void testHeadSet() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
            for (int i = 0; i < 10; i++) {
              assertEquals(
                  filter((C) createUnfiltered(contents).headSet(i), EVEN),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertEquals(
            ImmutableSet.of(), ContiguousSet.create(Range.greaterThan(Integer.MAX_VALUE), integers()));
      }
    
      public void testHeadSet() {
        ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers());
        assertThat(set.headSet(1)).isEmpty();
        assertThat(set.headSet(2)).containsExactly(1).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top