-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/improve celestialbody info (#146)
* Refactor test methods and improve celestial body data handling Refactored existing test methods in APITests.cpp to include more explicit assertion on individual attributes, in order to increase granularity of test failure reports. Added more test methods to evaluate body information with and without J parameters, thereby extending the test coverage. Made changes to CelestialBody.cpp and CelestialBody.h to enable handling of J parameters. These changes provide a better grasp of where errors may occur, especially in handling precision-based data calculations. The updates will also allow for a more comprehensive validation of celestial body data and its processing. * Update assertions to use ASSERT_NEAR instead of ASSERT_DOUBLE_EQ Changed the test assertions to use ASSERT_NEAR instead of ASSERT_DOUBLE_EQ for comparing double numbers in astrodynamics tests. The ASSERT_NEAR function allows us to specify a tolerance within which the two compared numbers should fall, this caters to scenarios where there can be minor variations in calculation outcomes due to intricacies in floating-point arithmetic. The test still ensures that numerically significant deviations are not ignored by this change. Adjustments have also been made to some key calculated values for correctness.
- Loading branch information
1 parent
407293c
commit 4ab9b3c
Showing
8 changed files
with
83 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters