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

[test] hassatellite

parent ab853b0c
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.
......@@ -38,6 +38,7 @@ TEST(ObservationsTest, AddClearObservation)
}
ASSERT_TRUE(obs.n == observations.getObservations().size());
ASSERT_TRUE(obs.n == observations.size());
// Testing clear
observations.clearObservations();
......@@ -108,6 +109,20 @@ TEST(ObservationsTest, data)
}
}
TEST(ObservationsTest, HasSatellite)
{
loadRinex();
Observations observations;
observations.loadFromRinex(rnx_file.c_str(), t_start, t_end, dt, opt);
for (int ii = 0; ii < obs.n; ++ii)
{
ASSERT_TRUE(observations.hasSatellite(obs.data[ii].sat));
}
}
int main(int argc, char** argv)
{
testing::InitGoogleTest(&argc, 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