Skip to content

Commit

Permalink
test more conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Oct 21, 2024
1 parent b21ab4e commit cbf2a4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "baa"
version = "0.12.3"
version = "0.12.4"
edition = "2021"
authors = ["Kevin Laeufer <[email protected]>"]
description = "BitVector and Array Arithmetic"
Expand Down
9 changes: 9 additions & 0 deletions src/array/owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,4 +843,13 @@ mod tests {
assert!(is_equal_mixed(&dense0, &sparse0).unwrap());
assert!(dense0.is_equal(&dense1).unwrap());
}

#[test]
fn test_conversions_u64() {
let dense0: DenseArrayValue = [1u64, 2, 3, 4, 5, 6, 1, 1, 1].as_slice().into();
let sparse0: SparseArrayValue = (&dense0).into();
let dense1: DenseArrayValue = (&sparse0).into();
assert!(is_equal_mixed(&dense0, &sparse0).unwrap());
assert!(dense0.is_equal(&dense1).unwrap());
}
}

0 comments on commit cbf2a4c

Please sign in to comment.