// #![feature(plugin)] // #![plugin(quickcheck_macros)] extern crate rsl; extern crate quickcheck; extern crate rand; use quickcheck::{quickcheck as qcheck}; fn reverse(xs: &[T]) -> Vec { let mut rev = vec!(); for x in xs { rev.insert(0, x.clone()) } rev } // #[quickcheck] fn props(xs: Vec) -> bool { xs == reverse(&reverse(&xs)) } #[test] fn qd(){ qcheck(props as fn(Vec) -> bool); }