Skip to content

Commit a95367d

Browse files
committed
long running tests are excluded from miri
1 parent e6b8a12 commit a95367d

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

tests/daryheap.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
mod priority_queue_tests;
1+
#![cfg(not(miri))]
22

3-
use orx_priority_queue::DaryHeap;
4-
use priority_queue_tests::*;
3+
mod priority_queue_tests;
54

65
#[test]
76
fn test_dary_forall() {
@@ -17,6 +16,9 @@ fn test_dary_forall() {
1716
}
1817

1918
fn test_dary_for<const D: usize>() {
19+
use orx_priority_queue::DaryHeap;
20+
use priority_queue_tests::*;
21+
2022
let new_heap = DaryHeap::<usize, f64, D>::default;
2123

2224
test_len(new_heap());

tests/daryheap_of_indices.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
#![cfg(not(miri))]
2+
13
mod priority_queue_deckey_tests;
24
mod priority_queue_tests;
35

4-
use orx_priority_queue::DaryHeapOfIndices;
5-
use priority_queue_deckey_tests::*;
6-
use priority_queue_tests::*;
7-
86
#[test]
97
fn test_dary_forall() {
108
test_dary_for::<2>();
@@ -19,6 +17,10 @@ fn test_dary_forall() {
1917
}
2018

2119
fn test_dary_for<const D: usize>() {
20+
use orx_priority_queue::DaryHeapOfIndices;
21+
use priority_queue_deckey_tests::*;
22+
use priority_queue_tests::*;
23+
2224
let new_heap = || DaryHeapOfIndices::<usize, f64, D>::with_index_bound(125);
2325

2426
let change_key = [

tests/daryheap_with_map.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
#![cfg(not(miri))]
2+
13
mod priority_queue_deckey_tests;
24
mod priority_queue_tests;
35

4-
use orx_priority_queue::DaryHeapWithMap;
5-
use priority_queue_deckey_tests::*;
6-
use priority_queue_tests::*;
7-
86
#[test]
97
fn test_dary_forall() {
108
test_dary_for::<2>();
@@ -19,6 +17,10 @@ fn test_dary_forall() {
1917
}
2018

2119
fn test_dary_for<const D: usize>() {
20+
use orx_priority_queue::DaryHeapWithMap;
21+
use priority_queue_deckey_tests::*;
22+
use priority_queue_tests::*;
23+
2224
let new_heap = DaryHeapWithMap::<usize, f64, D>::default;
2325

2426
let change_key = [

0 commit comments

Comments
 (0)