Skip to content

Commit

Permalink
Refactor smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
kauppie committed Mar 14, 2024
1 parent d226caa commit fe72a3b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,10 @@ mod tests {
use super::*;

#[test]
fn array_conversions() {
fn index_and_back() {
for i in 0..10_000u32 {
let array: [_; 2] = coord_of(i);
assert_eq!(index_of(array), i);
}
}

#[test]
fn interleave() {
let x = index_of([7u32, 7u32]);
assert_eq!(x, 0b111111);
}
}

0 comments on commit fe72a3b

Please sign in to comment.