()
| 233 | |
| 234 | #[test] |
| 235 | fn bitmap_or() { |
| 236 | let mut a = Bitmap::new(64); |
| 237 | a.set(1); |
| 238 | let mut b = Bitmap::new(64); |
| 239 | b.set(2); |
| 240 | let c = a.or(&b); |
| 241 | assert!(c.get(1)); |
| 242 | assert!(c.get(2)); |
| 243 | assert_eq!(c.count_ones(), 2); |
| 244 | } |
| 245 | |
| 246 | #[test] |
| 247 | fn bitmap_iter_ones() { |