mod common; #[cfg(test)] mod tests{ use super::common::*; use erfa_sys::*; use rfa::all::ursa_eqeq94; #[test] pub fn eqqe94_test(){ let dj1 = ERFA_DJ00; let dj2 = 365.0; for i in 0..20 { let dj_new = dj2 + (i*100) as f64; let erfa_eq = unsafe{eraEqeq94(dj1, dj_new)}; let rfa_eq = ursa_eqeq94(dj1, dj_new); assert!(rel_equal(erfa_eq, rfa_eq, 1E-14) ); } } }