fn bounded_iterator_non_zero_start() {
        let list = StableList::new();
        let mut iter = list.bounded_iter(5, None);
        assert_eq!(iter.next(), None);
        for i in 1000..1010 {
            list.push(i);
        }
        for i in 1005..1010 {
            assert_eq!(iter.next(), Some(&i));
        }
        assert_eq!(iter.next(), None);
    }
/// Test that iterator can be started from a non-zero index
Test that iterator can be started from a non-zero index
Test that iterator can be started from a non - zero index
fn bounded_iterator_non_zero_start() {
        let list = StableList::new();
        let mut iter = list.bounded_iter(5, None);
        assert_eq!(iter.next(), None);
        for i in 1000..1010 {
            list.push(i);
        }
        for i in 1005..1010 {
            assert_eq!(iter.next(), Some(&i));
        }
        assert_eq!(iter.next(), None);
    }
fn bounded_iterator_non_zero_start ( ) { let list = StableList :: new ( ) ; let mut iter = list . bounded_iter ( 5 , None ) ; assert_eq ! ( iter next ( ) None ) ; for i in 1000 .. 1010 { list . push ( i ) ; } for i in 1005 .. 1010 { assert_eq ! ( iter next ( ) Some ( i ) ) ; } assert_eq ! ( iter next ( ) None ) ; }
Test that iterator can be started from a non-zero index
Test that iterator can be started from a non - zero index