RoaringBitmap / roaring-rs

A better compressed bitset in Rust

Home Page:https://docs.rs/roaring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assert invariants

saik0 opened this issue · comments

commented

Invariants we could assert:

  • Array store is sorted
  • Array store is deduplicated
  • Bitmap store length is correct
  • Roaring containers are sorted by key
  • Roaring datastructure len is correct in #182

I think debug asserting this for every mutation and creation would be best.