Skip to content

Commit

Permalink
Rename GetWindFpsIC() to GetWindMagFpsIC() in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcleod committed May 18, 2024
1 parent 48ca104 commit 56aa719
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit_tests/FGInitialConditionTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class FGInitialConditionTest : public CxxTest::TestSuite
TS_ASSERT_EQUALS(ic.GetBetaDegIC(), 0.0);
TS_ASSERT_EQUALS(ic.GetBetaDegIC(), 0.0);
TS_ASSERT_EQUALS(ic.GetBetaRadIC(), 0.0);
TS_ASSERT_EQUALS(ic.GetWindFpsIC(), 0.0);
TS_ASSERT_EQUALS(ic.GetWindMagFpsIC(), 0.0);
TS_ASSERT_EQUALS(ic.GetWindDirDegIC(), 0.0);
TS_ASSERT_EQUALS(ic.GetWindUFpsIC(), 0.0);
TS_ASSERT_EQUALS(ic.GetWindVFpsIC(), 0.0);
Expand Down Expand Up @@ -356,10 +356,10 @@ class FGInitialConditionTest : public CxxTest::TestSuite
TS_ASSERT_DELTA(ic.GetWindNFpsIC(), 1.0, epsilon);
TS_ASSERT_DELTA(ic.GetWindEFpsIC(), 2.0, epsilon);
TS_ASSERT_DELTA(ic.GetWindDFpsIC(), 3.0, epsilon);
TS_ASSERT_DELTA(ic.GetWindFpsIC(), sqrt(5.0), epsilon);
TS_ASSERT_DELTA(ic.GetWindMagFpsIC(), sqrt(5.0), epsilon);
TS_ASSERT_DELTA(ic.GetWindDirDegIC(), atan2(2.0, 1.0)*180./M_PI, epsilon);

double mag = ic.GetWindFpsIC();
double mag = ic.GetWindMagFpsIC();
ic.SetWindDirDegIC(30.);
TS_ASSERT_DELTA(ic.GetWindNFpsIC(), 0.5*mag*sqrt(3.0), epsilon);
TS_ASSERT_DELTA(ic.GetWindEFpsIC(), 0.5*mag, epsilon);
Expand Down

0 comments on commit 56aa719

Please sign in to comment.