We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b7d7ce commit 3f23cacCopy full SHA for 3f23cac
src/math/j1f.rs
@@ -357,12 +357,16 @@ fn qonef(x: f32) -> f32 {
357
return (0.375 + r / s) / x;
358
}
359
360
-#[test]
361
-fn test_j1f_2488() {
362
- // 0x401F3E49
363
- assert_eq!(j1f(2.4881766_f32), 0.49999475_f32);
364
-}
365
366
-fn test_y1f_2002() {
367
- assert_eq!(y1f(2.0000002_f32), -0.10703229_f32);
+#[cfg(test)]
+mod tests {
+ use super::{j1f, y1f};
+ #[test]
+ fn test_j1f_2488() {
+ // 0x401F3E49
+ assert_eq!(j1f(2.4881766_f32), 0.49999475_f32);
+ }
368
369
+ fn test_y1f_2002() {
370
+ assert_eq!(y1f(2.0000002_f32), -0.10703229_f32);
371
372
0 commit comments