mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-24 12:05:42 -08:00
fix tests
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -462,7 +462,6 @@ impl Ord for HEALPixCell {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
mod tests {
|
||||
use super::HEALPixCell;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user