fix tests

This commit is contained in:
Matthieu Baumann
2023-08-12 14:57:41 +02:00
parent b31bb18027
commit a4e4ec85af
2 changed files with 4 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ mod tests {
let lonlat: LonLatT<f64> = LonLatT::new(ArcDeg(0.0).into(), ArcDeg(0.0).into());
let gal_lonlat =
super::apply_coo_system(&CooSystem::ICRS, &CooSystem::GAL, &lonlat.vector()).lonlat();
super::apply_coo_system(CooSystem::ICRS, CooSystem::GAL, &lonlat.vector()).lonlat();
let gal_lon_deg = gal_lonlat.lon().0 * 360.0 / (2.0 * std::f64::consts::PI);
let gal_lat_deg = gal_lonlat.lat().0 * 360.0 / (2.0 * std::f64::consts::PI);
@@ -53,7 +53,7 @@ mod tests {
let lonlat: LonLatT<f64> = LonLatT::new(ArcDeg(0.0).into(), ArcDeg(0.0).into());
let j2000_lonlat =
super::apply_coo_system(&CooSystem::GAL, &CooSystem::ICRS, &lonlat.vector()).lonlat();
super::apply_coo_system(CooSystem::GAL, CooSystem::ICRS, &lonlat.vector()).lonlat();
let j2000_lon_deg = j2000_lonlat.lon().0 * 360.0 / (2.0 * std::f64::consts::PI);
let j2000_lat_deg = j2000_lonlat.lat().0 * 360.0 / (2.0 * std::f64::consts::PI);
@@ -71,9 +71,9 @@ mod tests {
let gal_lonlat: LonLatT<f64> = LonLatT::new(ArcDeg(0.0).into(), ArcDeg(0.0).into());
let icrs_pos =
super::apply_coo_system(&CooSystem::GAL, &CooSystem::ICRS, &gal_lonlat.vector());
super::apply_coo_system(CooSystem::GAL, CooSystem::ICRS, &gal_lonlat.vector());
let gal_lonlat = super::apply_coo_system(&CooSystem::ICRS, &CooSystem::GAL, &icrs_pos);
let gal_lonlat = super::apply_coo_system(CooSystem::ICRS, CooSystem::GAL, &icrs_pos);
let gal_lon_deg = gal_lonlat.lon().0 * 360.0 / (2.0 * std::f64::consts::PI);
let gal_lat_deg = gal_lonlat.lat().0 * 360.0 / (2.0 * std::f64::consts::PI);

View File

@@ -462,7 +462,6 @@ impl Ord for HEALPixCell {
}
}
#[test]
mod tests {
use super::HEALPixCell;