Crate flipflop

Crate flipflop 

Source
Expand description

Stress-tester for double-ended iterators.

use flipflop::prelude::*;

let mut accum = accum::Unbounded::new();
let mut suite = suite::Consistent::new();

let mut iter = (1..10).rev().flat_map(|x| 0..x);

if let Err(err) = suite.run(&iter, &mut accum) {
    panic!("{}", err);
}

Re-exports§

pub use crate::accum::Accum;
pub use crate::strategy::Strategy;
pub use crate::suite::Suite;
pub use crate::verifier::Verifier;

Modules§

accum
Accum trait and implementations.
error
Error types.
iter
Various iterator types.
prelude
Prelude for this crate, to be blob-imported in relevant code.
strategy
Strategy trait and impls.
suite
Suite trait and impls.
verifier
Verifier trait and impls.

Enums§

Side
Which side of an iterator to check.