diff options
Diffstat (limited to 'test_data_manager.c')
-rw-r--r-- | test_data_manager.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test_data_manager.c b/test_data_manager.c index 61d1d87..8edd781 100644 --- a/test_data_manager.c +++ b/test_data_manager.c @@ -7,3 +7,11 @@ 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)); +} |