Tudat/Astrodynamics/BasicAstrodynamics/UnitTests/unitTestConvertMeanAnomalyToEccentricAnomaly.cpp
//! Test 3: Test conversion for negative eccentricities.
Test 3: Test conversion for negative eccentricities.
Test 3 : Test conversion for negative eccentricities .
BOOST_AUTO_TEST_CASE( test_convertMeanAnomalyToEccentricAnomaly_negative )
{
    const double testEccentricity = -0.5;
    const double testMeanAnomaly = 1.0472;
    BOOST_CHECK_THROW( convertMeanAnomalyToEccentricAnomaly( testEccentricity, testMeanAnomaly ),
                       std::runtime_error );
}
BOOST_AUTO_TEST_CASE ( test_convertMeanAnomalyToEccentricAnomaly_negative ) { const double testEccentricity = -0.5 ; const double testMeanAnomaly = 1.0472 ; BOOST_CHECK_THROW ( convertMeanAnomalyToEccentricAnomaly ( testEccentricity , testMeanAnomaly ) , std :: runtime_error ) ; }
Test 3: Test conversion for negative eccentricities.
Test 3 : Test conversion for negative eccentricities .
// Set test value for eccentricity. // Set test value for mean anomaly. // Check if a runtime error is thrown if the anomaly is converted for this eccentricity.