Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 7c236b8

Browse files
committed
Check with sin
1 parent 053049c commit 7c236b8

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

crates/libm-test/src/gen/domain.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Does the following:
1616

1717
use std::ops::{Bound, RangeBounds};
1818

19-
use crate::Float;
2019
use crate::domain::{self, Domain};
20+
use crate::{CheckCtx, Float};
2121

2222
/// Number of values near an interesting point to check.
2323
const AROUND: usize = 100;
@@ -138,9 +138,14 @@ fn count_down<F: Float>(mut x: F) -> impl Iterator<Item = F> {
138138
})
139139
}
140140

141-
#[test]
142-
fn foobarbaz() {
143-
let values = near_bounds::<f32, domain::sin::D>();
141+
// #[test]
142+
// fn foobarbaz() {
143+
// let values = near_bounds::<f32, domain::sin::D>();
144144

145-
panic!("{}", values.len());
145+
// panic!("{}", values.len());
146+
// }
147+
148+
/// Create a test case iterator.
149+
pub fn get_test_cases<F: Float, D: Domain<F>>(ctx: &CheckCtx) -> impl Iterator<Item = (F,)> {
150+
near_bounds::<F, D>().into_iter().map(|v| (v,))
146151
}

crates/libm-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mod domain;
1+
pub mod domain;
22
pub mod func;
33
pub mod gen;
44
#[cfg(feature = "test-multiprecision")]

0 commit comments

Comments
 (0)