Skip to content

Commit

Permalink
Ordered queue test was not compiling on 32 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Oct 6, 2020
1 parent 5fc743b commit d8d575c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zenoh-util/tests/ordered_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fn ordered_queue_overflow() {
#[test]
fn ordered_queue_mask() {
// Test the deterministic insertion of elements and mask
let size = 64;
let size = 8;
let mut queue: OrderedQueue<usize> = OrderedQueue::new(size);

let mut sn: usize = 0;
Expand All @@ -159,7 +159,7 @@ fn ordered_queue_mask() {
}

// Verify that the mask is correct
let mask = 0b0010101010101010101010101010101010101010101010101010101010101010;
let mask: usize = 0b00101010;
assert_eq!(queue.get_mask(), mask);

// Insert the missing elements
Expand All @@ -171,7 +171,7 @@ fn ordered_queue_mask() {
}

// Verify that the mask is correct
let mask = 0b0;
let mask: usize = 0b0;
assert_eq!(queue.get_mask(), mask);

// Drain the queue
Expand All @@ -183,7 +183,7 @@ fn ordered_queue_mask() {
#[test]
fn ordered_queue_random_mask() {
// Test the random insertion of elements and the mask
let size = 64;
let size = 8;
let mut queue: OrderedQueue<usize> = OrderedQueue::new(size);

let mut sequence = Vec::<usize>::new();
Expand Down

0 comments on commit d8d575c

Please sign in to comment.