Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testGetLast_iterable (0.08 seconds)

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

        assertThrows(NoSuchElementException.class, () -> Iterables.getLast(sortedSet));
        assertThat(Iterables.getLast(sortedSet, "c")).isEqualTo("c");
      }
    
      public void testGetLast_iterable() {
        Set<String> set = ImmutableSet.of("a", "b", "c");
        assertThat(Iterables.getLast(set)).isEqualTo("c");
      }
    
      public void testGetLast_emptyIterable() {
        Set<String> set = new HashSet<>();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
Back to Top