diff --git a/test/gtest_observations.cpp b/test/gtest_observations.cpp index 24f4f5963b500b6324066d66106f7b7d440b5396..e4003535ecf585bebbee1bed7748e4053197104c 100644 --- a/test/gtest_observations.cpp +++ b/test/gtest_observations.cpp @@ -93,9 +93,19 @@ TEST(ObservationsTest, GetObservationByIdx) } } -TEST() +TEST(ObservationsTest, data) { + loadRinex(); + + Observations observations; + observations.loadFromRinex(rnx_file.c_str(), t_start, t_end, dt, opt); + + for (int ii = 0; ii < obs.n; ++ii) + { + // We do this check like this because both loading functions load the rinex file and then sort the observations + ASSERT_TRUE(equalObservations(obs.data[ii], observations.data()[ii])); + } } int main(int argc, char** argv)