1 2 3 4 5 6 7 8 9 10 11 12 13 14
mod common; pub use common::*; use ref_wrapper::RefIter; use std::cell::RefCell; #[test] fn with_normal() { let src = RefCell::new(samples()); let result = RefIter::new(src.borrow(), |x| Box::new(x.iter())); assert!(result.eq(samples().iter())); }