Skip to content
Snippets Groups Projects
Commit ab853b0c authored by Pep Martí Saumell's avatar Pep Martí Saumell
Browse files

[test] add observation.data()

parent c45755f7
No related branches found
No related tags found
3 merge requests!20new tag,!19new tag,!6Resolve "observation_tests"
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment