diff --git a/test/OpenSpaceToolkit/Astrodynamics/Trajectory/Orbit/Model/Kepler/COE.test.cpp b/test/OpenSpaceToolkit/Astrodynamics/Trajectory/Orbit/Model/Kepler/COE.test.cpp index 56dc57785..38a6e2354 100644 --- a/test/OpenSpaceToolkit/Astrodynamics/Trajectory/Orbit/Model/Kepler/COE.test.cpp +++ b/test/OpenSpaceToolkit/Astrodynamics/Trajectory/Orbit/Model/Kepler/COE.test.cpp @@ -5,6 +5,7 @@ #include +#include #include #include #include @@ -28,6 +29,7 @@ using ostk::mathematics::object::Vector6d; using ostk::physics::coordinate::Frame; using ostk::physics::coordinate::Position; using ostk::physics::coordinate::Velocity; +using ostk::physics::Environment; using ostk::physics::environment::gravitational::Earth; using ostk::physics::environment::object::celestial::Sun; using ostk::physics::time::DateTime; @@ -748,6 +750,13 @@ TEST_F(OpenSpaceToolkit_Astrodynamics_Trajectory_Orbit_Model_Kepler_COE, FrozenO EXPECT_NEAR(coe.getAop().inDegrees(), non_critical_aop.inDegrees(), 1e-10); } + // Construct with Celestial + { + COE coe = COE::FrozenOrbit(semiMajorAxis, Environment::Default().accessCelestialObjectWithName("Earth")); + + EXPECT_TRUE(coe.isDefined()); + } + { { // No SMA provided