(u: &Univ)
| 245 | } |
| 246 | |
| 247 | fn roundtrip(u: &Univ) -> bool { |
| 248 | let mut buf = Vec::new(); |
| 249 | put_univ(u, &mut buf); |
| 250 | match get_univ(&mut buf.as_slice()) { |
| 251 | Ok(result) => result.as_ref() == u, |
| 252 | Err(_) => false, |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | #[quickcheck] |
| 257 | fn prop_univ_roundtrip(u: ArbitraryUniv) -> bool { |
no test coverage detected