Skip to content

Commit

Permalink
Modify zone_5 test due to different numerical accuracies in Ubuntu an…
Browse files Browse the repository at this point in the history
…d macOS
  • Loading branch information
fxpineau committed Nov 19, 2024
1 parent 2a376fa commit 8846670
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/nested/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6828,16 +6828,15 @@ mod tests {
let depth = 3;
let (lon_min, lat_min, lon_max, lat_max) = (
180_f64.to_radians(),
30_f64.to_radians(),
360.0_f64.to_radians(),
(30_f64 + 1e-14_f64).to_radians(),
360_f64.to_radians(),
50_f64.to_radians(),
);
let expected_res_exact: [u64; 90] = [
135, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
156, 157, 158, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
176, 177, 178, 199, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235,
236, 237, 238, 240, 241, 242, 315, 318, 319, 439, 445, 447, 503, 507, 508, 509, 510, 511,
let expected_res_exact: [u64; 75] = [
141, 142, 143, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 161, 162,
163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 176, 177, 178, 205, 206, 207, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 225, 226, 227, 228, 229, 230,
231, 232, 233, 234, 235, 236, 237, 238, 240, 241, 242, 318, 319, 445, 447, 509, 510, 511
];
let actual_res_exact = zone_coverage(depth, lon_min, lat_min, lon_max, lat_max);
// to_aladin_moc(&actual_res_exact);
Expand Down

0 comments on commit 8846670

Please sign in to comment.