#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)); } RUNNER_DECLARE_TEST(test_data_manager_first_readings) { data_manager_init(); TEST_ASSERT_FLOAT_WITHIN(0.001, 1019.5, data_manager_get_pressure(PRESSURE_UNIT_HPA)); data_manager_tick(); TEST_ASSERT_FLOAT_WITHIN(0.001, 1019.45, data_manager_get_pressure(PRESSURE_UNIT_HPA)); }