fn populate_and_iterate_simple() {
        let list = StableList::new();
        let iter = list.iter();
        let arb_values = CHUNK_SIZE * 2 + 1;
        for i in 0..(arb_values) {
            list.push(i * 10);
        }
        assert_eq!(list.len(), arb_values);
        let mut values_found = 0;
        for (exp, val) in (0..).zip(iter) {
            assert_eq!(exp * 10, *val);
            values_found += 1;
        }
        assert_eq!(values_found, arb_values);
    }
/// Test that populating the list then iterating over it works
Test that populating the list then iterating over it works
Test that populating the list then iterating over it works
fn populate_and_iterate_simple() {
        let list = StableList::new();
        let iter = list.iter();
        let arb_values = CHUNK_SIZE * 2 + 1;
        for i in 0..(arb_values) {
            list.push(i * 10);
        }
        assert_eq!(list.len(), arb_values);
        let mut values_found = 0;
        for (exp, val) in (0..).zip(iter) {
            assert_eq!(exp * 10, *val);
            values_found += 1;
        }
        assert_eq!(values_found, arb_values);
    }
fn populate_and_iterate_simple ( ) { let list = StableList :: new ( ) ; let iter = list . iter ( ) ; let arb_values = CHUNK_SIZE * 2 + 1 ; for i in 0 .. ( arb_values ) { list . push ( i * 10 ) ; } assert_eq ! ( list len ( ) arb_values ) ; let mut values_found = 0 ; for ( exp , val ) in ( 0 .. ) . zip ( iter ) { assert_eq ! ( exp 10 val ) ; values_found += 1 ; } assert_eq ! ( values_found arb_values ) ; }
Test that populating the list then iterating over it works
Test that populating the list then iterating over it works