Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
f46ea75c
Commit
f46ea75c
authored
7 years ago
by
Daniel Agar
Browse files
Options
Downloads
Patches
Plain Diff
mag declinataion test switch to ut_compare_float
parent
d5852180
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/unit_test.h
+1
-1
1 addition, 1 deletion
src/include/unit_test.h
src/systemcmds/tests/test_autodeclination.cpp
+484
-481
484 additions, 481 deletions
src/systemcmds/tests/test_autodeclination.cpp
with
485 additions
and
482 deletions
src/include/unit_test.h
+
1
−
1
View file @
f46ea75c
...
...
@@ -161,7 +161,7 @@ protected:
/// since it will give you better error reporting of the actual values being compared.
#define ut_compare_float(message, v1, v2, precision) \
do { \
int _p = powf(10.0f, precision);
\
int _p = powf(10.0f, precision); \
int _v1 = (int)(v1 * _p + 0.5f); \
int _v2 = (int)(v2 * _p + 0.5f); \
if (_v1 != _v2) { \
...
...
This diff is collapsed.
Click to expand it.
src/systemcmds/tests/test_autodeclination.cpp
+
484
−
481
View file @
f46ea75c
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment