Diff of /test/propagator/OdePropagatorTest.cpp [d6e7a5] .. [dd20b8]  Maximize  Restore

Switch to side-by-side view

--- a/test/propagator/OdePropagatorTest.cpp
+++ b/test/propagator/OdePropagatorTest.cpp
@@ -68,43 +68,43 @@
 	}
 }
 
-TEST(ODESolverTest, solveComplexOscillatorWith_RKCashKarp54) {
-	solveComplexOscillator<OdePropagator_RK_CashKarp54>(1e-3, 1e-2);
+TEST(ODESolverTest, solveWith_RKCashKarp54) {
+	solveComplexOscillator<OdePropagator_RK54>(1e-3, 1e-2);
 }
 
-TEST(ODESolverTest, solveComplexOscillatorWith_RKDopri5) {
-	solveComplexOscillator<OdePropagator_RK_Dopri5>(1e-6, 1e-5);
+TEST(ODESolverTest, solveWith_RKDopri5) {
+	solveComplexOscillator<OdePropagator_RK5>(1e-6, 1e-5);
 }
 
-TEST(ODESolverTest, solveComplexOscillatorWith_RKFehlberg78) {
-	solveComplexOscillator<OdePropagator_RK_Fehlberg78>(1e-9, 1e-8);
+TEST(ODESolverTest, solveWith_RKFehlberg78) {
+	solveComplexOscillator<OdePropagator_RK78>(1e-9, 1e-8);
 }
 
-TEST(ODESolverTest, solveComplexOscillatorWith_BulirschStoer) {
-	solveComplexOscillator<OdePropagator_BulirschStoer>(1e-9, 1e-8);
+TEST(ODESolverTest, solveWith_BulirschStoer) {
+	solveComplexOscillator<OdePropagator_BS>(1e-9, 1e-8);
 }
 
-TEST(ODESolverTest, propagatorsRequireValidHamiltonian) {
-	ASSERT_THROW(OdePropagator_RK_CashKarp54(std::shared_ptr<LinearOperator>()), std::invalid_argument);
-	ASSERT_THROW(OdePropagator_RK_Dopri5(std::shared_ptr<LinearOperator>()), std::invalid_argument);
-	ASSERT_THROW(OdePropagator_RK_Fehlberg78(std::shared_ptr<LinearOperator>()), std::invalid_argument);
-	ASSERT_THROW(OdePropagator_BulirschStoer(std::shared_ptr<LinearOperator>()), std::invalid_argument);
+TEST(ODESolverTest, rejectNullHamiltonian) {
+	ASSERT_THROW(OdePropagator_RK54(std::shared_ptr<LinearOperator>()), std::invalid_argument);
+	ASSERT_THROW(OdePropagator_RK5(std::shared_ptr<LinearOperator>()), std::invalid_argument);
+	ASSERT_THROW(OdePropagator_RK78(std::shared_ptr<LinearOperator>()), std::invalid_argument);
+	ASSERT_THROW(OdePropagator_BS(std::shared_ptr<LinearOperator>()), std::invalid_argument);
 }
 
-TEST(ODESolverTest, propagatorsRequireNonNegativeRelError) {
+TEST(ODESolverTest, rejectNegativeRelError) {
 	auto op = std::make_shared<MockOperator>();
 
-	ASSERT_THROW( OdePropagator_RK_CashKarp54(op, -1e-6), std::invalid_argument );
-	ASSERT_THROW( OdePropagator_RK_Dopri5(op, -1e-6), std::invalid_argument );
-	ASSERT_THROW( OdePropagator_RK_Fehlberg78(op, -1e-6), std::invalid_argument );
-	ASSERT_THROW( OdePropagator_BulirschStoer(op, -1e-6), std::invalid_argument );
+	ASSERT_THROW( OdePropagator_RK54(op, -1e-6), std::invalid_argument );
+	ASSERT_THROW( OdePropagator_RK5(op, -1e-6), std::invalid_argument );
+	ASSERT_THROW( OdePropagator_RK78(op, -1e-6), std::invalid_argument );
+	ASSERT_THROW( OdePropagator_BS(op, -1e-6), std::invalid_argument );
 }
 
-TEST(ODESolverTest, propagatorsRequireNonNegativeAbsError) {
+TEST(ODESolverTest, rejectNegativeAbsError) {
 	auto op = std::make_shared<MockOperator>();
 
-	ASSERT_THROW( OdePropagator_RK_CashKarp54(op, 1, -1e-6), std::invalid_argument );
-	ASSERT_THROW( OdePropagator_RK_Dopri5(op, 1, -1e-6), std::invalid_argument );
-	ASSERT_THROW( OdePropagator_RK_Fehlberg78(op, 1, -1e-6), std::invalid_argument );
-	ASSERT_THROW( OdePropagator_BulirschStoer(op, 1, -1e-6), std::invalid_argument );
+	ASSERT_THROW( OdePropagator_RK54(op, 1, -1e-6), std::invalid_argument );
+	ASSERT_THROW( OdePropagator_RK5(op, 1, -1e-6), std::invalid_argument );
+	ASSERT_THROW( OdePropagator_RK78(op, 1, -1e-6), std::invalid_argument );
+	ASSERT_THROW( OdePropagator_BS(op, 1, -1e-6), std::invalid_argument );
 }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks