()
| 1244 | |
| 1245 | #[test] |
| 1246 | fn test_hashes_method() { |
| 1247 | let h0 = make_hash(0); |
| 1248 | let h1 = make_hash(1); |
| 1249 | let mut table = HashDedupTable::new(h0); |
| 1250 | table.insert(h1).unwrap(); |
| 1251 | |
| 1252 | let raw = table.hashes(); |
| 1253 | assert_eq!(raw.len(), 2); |
| 1254 | assert_eq!(raw[0], h0); |
| 1255 | assert_eq!(raw[1], h1); |
| 1256 | } |
| 1257 | |
| 1258 | #[test] |
| 1259 | fn test_bidirectional_consistency() { |