Skip to content

Commit

Permalink
Merge #63
Browse files Browse the repository at this point in the history
63: Update to 0.6.1 r=Nemo157 a=Nemo157

Along with explicit boundary serialization tests

Co-authored-by: Wim Looman <git@nemo157.com>
  • Loading branch information
bors[bot] and Nemo157 committed Sep 10, 2020
2 parents 5bc2b7c + 38f4f65 commit bc97c14
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
version = "0.6.0"
version = "0.6.1"
authors = ["Wim Looman <wim@nemo157.com>"]
description = "http://roaringbitmap.org : A better compressed bitset - pure Rust implementation "

Expand All @@ -25,4 +25,4 @@ criterion = "0.3"

[[bench]]
name = "lib"
harness = false
harness = false
14 changes: 14 additions & 0 deletions tests/serialization.rs
Expand Up @@ -60,6 +60,20 @@ fn test_array() {
assert_eq!(original, new);
}

#[test]
fn test_array_boundary() {
let original = RoaringBitmap::from_iter(1000..5096);
let new = serialize_and_deserialize(&original);
assert_eq!(original, new);
}

#[test]
fn test_bitmap_boundary() {
let original = RoaringBitmap::from_iter(1000..5097);
let new = serialize_and_deserialize(&original);
assert_eq!(original, new);
}

#[test]
fn test_bitmap() {
let original = RoaringBitmap::from_iter(1000..6000);
Expand Down

0 comments on commit bc97c14

Please sign in to comment.