Skip to content

Commit 3f23cac

Browse files
committed
separate tests into #[cfg(test)] mod
1 parent 7b7d7ce commit 3f23cac

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/math/j1f.rs

+12-8
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,16 @@ fn qonef(x: f32) -> f32 {
357357
return (0.375 + r / s) / x;
358358
}
359359

360-
#[test]
361-
fn test_j1f_2488() {
362-
// 0x401F3E49
363-
assert_eq!(j1f(2.4881766_f32), 0.49999475_f32);
364-
}
365-
#[test]
366-
fn test_y1f_2002() {
367-
assert_eq!(y1f(2.0000002_f32), -0.10703229_f32);
360+
#[cfg(test)]
361+
mod tests {
362+
use super::{j1f, y1f};
363+
#[test]
364+
fn test_j1f_2488() {
365+
// 0x401F3E49
366+
assert_eq!(j1f(2.4881766_f32), 0.49999475_f32);
367+
}
368+
#[test]
369+
fn test_y1f_2002() {
370+
assert_eq!(y1f(2.0000002_f32), -0.10703229_f32);
371+
}
368372
}

0 commit comments

Comments
 (0)