Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testCycleOfOne (0.32 seconds)

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

      }
    
      public void testCycleOfEmpty() {
        // "<String>" for javac 1.5.
        Iterator<String> cycle = Iterators.<String>cycle();
        assertFalse(cycle.hasNext());
      }
    
      public void testCycleOfOne() {
        Iterator<String> cycle = Iterators.cycle("a");
        for (int i = 0; i < 3; i++) {
          assertTrue(cycle.hasNext());
          assertThat(cycle.next()).isEqualTo("a");
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testCycleOfEmpty() {
        // "<String>" for javac 1.5.
        Iterator<String> cycle = Iterators.<String>cycle();
        assertFalse(cycle.hasNext());
      }
    
      public void testCycleOfOne() {
        Iterator<String> cycle = Iterators.cycle("a");
        for (int i = 0; i < 3; i++) {
          assertTrue(cycle.hasNext());
          assertThat(cycle.next()).isEqualTo("a");
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
Back to Top