Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gnss_utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
algorithms
gnss_utils
Merge requests
!6
Resolve "observation_tests"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "observation_tests"
6-observation_tests
into
devel
Overview
1
Commits
4
Pipelines
0
Changes
1
Merged
Pep Martí Saumell
requested to merge
6-observation_tests
into
devel
5 years ago
Overview
1
Commits
4
Pipelines
0
Changes
1
Expand
Closes
#6 (closed)
Edited
5 years ago
by
Pep Martí Saumell
0
0
Merge request reports
Viewing commit
ab853b0c
Prev
Next
Show latest version
1 file
+
11
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ab853b0c
[test] add observation.data()
· ab853b0c
Pep Martí Saumell
authored
5 years ago
test/gtest_observations.cpp
+
11
−
1
Options
@@ -93,9 +93,19 @@ TEST(ObservationsTest, GetObservationByIdx)
@@ -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
)
int
main
(
int
argc
,
char
**
argv
)
Loading