Skip to content

Commit

Permalink
🚨 Add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisbr committed Sep 26, 2024
1 parent 1a5444b commit 43da624
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/gravity_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,18 @@ end
@test βˆ‚U_βˆ‚r == βˆ‚U_βˆ‚r_expected
@test βˆ‚U_βˆ‚Ο• == βˆ‚U_βˆ‚Ο•_expected
@test βˆ‚U_βˆ‚Ξ» == βˆ‚U_βˆ‚Ξ»_expected

# Test when `max_degrees != max_order`.
βˆ‚U_βˆ‚r, βˆ‚U_βˆ‚Ο•, βˆ‚U_βˆ‚Ξ» = GravityModels.gravitational_field_derivative(
eigen6c,
[6378.137e3, 0, 0];
max_degree = 1,
max_order = 0
)

@test βˆ‚U_βˆ‚r β‰ˆ -9.798285471812783
@test βˆ‚U_βˆ‚Ο• β‰ˆ 0.0
@test βˆ‚U_βˆ‚Ξ» β‰ˆ 0.0
end

@testset "Gravity Field Derivative [ERRORS]" verbose = true begin
Expand Down

0 comments on commit 43da624

Please sign in to comment.