mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 00:33:33 +08:00
unittests fix code style
This commit is contained in:
committed by
Lorenz Meier
parent
fb040f9117
commit
b55fe24161
@@ -1,6 +1,6 @@
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
TEST(AutoDeclinationTest, AutoDeclination) {
|
||||
TEST(AutoDeclinationTest, AutoDeclination)
|
||||
{
|
||||
ASSERT_NEAR(get_mag_declination(47.0, 8.0), 0.6, 0.5) << "declination differs more than 1 degree";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user