bitmaps icon indicating copy to clipboard operation
bitmaps copied to clipboard

The Iter implementation is wrong.

Open lightsing opened this issue 1 year ago • 0 comments

as long as the SIZE bit is set (which is out of bound), it will appears in iter result.

related to: #22 #18

    #[test]
    fn test_invert_iter() {
        let bitmap = Bitmap::<7>::from_value(0b11111010);
        assert_eq!(bitmap.into_iter().collect::<Vec<_>>(), vec![1, 3, 4, 5, 6]);
    }

lightsing avatar Sep 02 '23 11:09 lightsing