()
| 216 | |
| 217 | #[test] |
| 218 | fn test_hash() { |
| 219 | use std::collections::HashSet; |
| 220 | let mut set = HashSet::new(); |
| 221 | set.insert(Algorithm::Myers); |
| 222 | set.insert(Algorithm::Patience); |
| 223 | assert!(set.contains(&Algorithm::Myers)); |
| 224 | assert!(set.contains(&Algorithm::Patience)); |
| 225 | assert_eq!(set.len(), 2); |
| 226 | } |
| 227 | } |