Closed woojiq closed 6 months ago
Iiuc it is not expected behavior, is it? I'd expect a panic/result or checked_div function in the library.
#[test] #[should_panic] fn just_test() { let r = NotNan::new(1.).unwrap() / NotNan::new(0.).unwrap(); println!("{r:?}"); }
running 1 test test just_test - should panic ... FAILED failures: ---- just_test stdout ---- NotNan(inf) note: test did not panic as expected
Similar issues: #17, #32
Ah, I guess I need to learn more about Nan and infinity first :)
Iiuc it is not expected behavior, is it? I'd expect a panic/result or checked_div function in the library.
Similar issues: #17, #32