aboutsummaryrefslogtreecommitdiff
path: root/test_data_manager.c
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-02-13 23:14:00 +1300
committerDavid Phillips <david@yeah.nah.nz>2021-02-13 23:24:22 +1300
commitce9e7b1ebd506f8b12bf1c26fedd5dddd3cdd653 (patch)
treecc2b49dc606cfc56b930f78fe910982028eae684 /test_data_manager.c
parente8042274b1722e5a0a2b99bea31bafe191d936f1 (diff)
downloadaltimeter-ce9e7b1ebd506f8b12bf1c26fedd5dddd3cdd653.tar.xz
Initialise data manager with ISA pressure
Diffstat (limited to 'test_data_manager.c')
-rw-r--r--test_data_manager.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test_data_manager.c b/test_data_manager.c
new file mode 100644
index 0000000..61d1d87
--- /dev/null
+++ b/test_data_manager.c
@@ -0,0 +1,9 @@
+#include "data_manager.h"
+#include "test_runner.h"
+#include "unity.h"
+
+RUNNER_DECLARE_TEST(test_data_manager_init_setting)
+{
+ data_manager_init();
+ TEST_ASSERT_FLOAT_WITHIN(0.001, 1013.25, data_manager_get_setting(PRESSURE_UNIT_HPA));
+}