Skip to content

Commit 35e16a1

Browse files
authored
#266: reduce Miri test count in round.rs
1 parent 72df4c4 commit 35e16a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/core_simd/tests/round.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ macro_rules! float_rounding_test {
5959
const MAX_REPRESENTABLE_VALUE: Scalar =
6060
(ALL_MANTISSA_BITS << (core::mem::size_of::<Scalar>() * 8 - <Scalar>::MANTISSA_DIGITS as usize - 1)) as Scalar;
6161

62-
let mut runner = proptest::test_runner::TestRunner::default();
62+
let mut runner = test_helpers::make_runner();
6363
runner.run(
6464
&test_helpers::array::UniformArrayStrategy::new(-MAX_REPRESENTABLE_VALUE..MAX_REPRESENTABLE_VALUE),
6565
|x| {

crates/test_helpers/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ impl<T: core::fmt::Debug + DefaultStrategy, const LANES: usize> DefaultStrategy
7878
}
7979

8080
#[cfg(not(miri))]
81-
fn make_runner() -> proptest::test_runner::TestRunner {
81+
pub fn make_runner() -> proptest::test_runner::TestRunner {
8282
Default::default()
8383
}
8484
#[cfg(miri)]
85-
fn make_runner() -> proptest::test_runner::TestRunner {
85+
pub fn make_runner() -> proptest::test_runner::TestRunner {
8686
// Only run a few tests on Miri
8787
proptest::test_runner::TestRunner::new(proptest::test_runner::Config::with_cases(4))
8888
}

0 commit comments

Comments
 (0)