@@ -1123,12 +1123,14 @@ UNIT_CLASS_TEST(Runner, TrackParsingTest_1)
1123
1123
dp::Color (171 , 230 , 0 , 255 ),
1124
1124
dp::Color (0 , 230 , 117 , 255 ),
1125
1125
dp::Color (0 , 59 , 230 , 255 )}};
1126
- array<double , 4 > const length = {{3525.46839061 , 27172.44338132 , 27046.0456586 , 23967.35765800 }};
1127
-
1126
+ array<double , 4 > const length = {{3525.46839061 , 27174.11393166 , 27046.0456586 , 23967.35765800 }};
1127
+ array<geometry::Altitude, 4 > const altitudes = {{ 0 , 27 , - 3 , - 2 }};
1128
1128
size_t i = 0 ;
1129
1129
for (auto trackId : bmManager.GetTrackIds (catId))
1130
1130
{
1131
1131
auto const * track = bmManager.GetTrack (trackId);
1132
+ TEST_EQUAL (track->GetPointsWithAltitudes ()[0 ].GetAltitude (), altitudes[i],
1133
+ (track->GetPointsWithAltitudes ()[0 ].GetAltitude (), altitudes[i]));
1132
1134
TEST_EQUAL (names[i], track->GetName (), ());
1133
1135
TEST (fabs (track->GetLengthMeters () - length[i]) < 1.0E-6 , (track->GetLengthMeters (), length[i]));
1134
1136
TEST_GREATER (track->GetLayerCount (), 0 , ());
0 commit comments