push for windows

This commit is contained in:
Rens Pastoor
2025-06-17 10:10:15 +02:00
parent 04072d831e
commit 12135deea1
15 changed files with 54 additions and 53 deletions

View File

@@ -59,6 +59,25 @@ void test_setting_get_config_settings(void){
watch_registers_get_config_settings(config, &is_paused, &format, &interval);
TEST_ASSERT_EQUAL(TIME_EVERY_1_SECOND, interval);
}
void test_setting_get_config_settings2(void){
uint8_t config = 0xAA; // 0b00000000 so time is updated, time format hour:minute, time refresh not updated
bool is_paused;
time_format format;
time_update_interval interval;
watch_registers_get_config_settings(config, &is_paused, &format, &interval);
TEST_ASSERT_EQUAL(true, is_paused);
TEST_ASSERT_EQUAL(0, format);
TEST_ASSERT_EQUAL(0b01, interval);
config = 0x55;
watch_registers_get_config_settings(config, &is_paused, &format, &interval);
TEST_ASSERT_EQUAL(false, is_paused);
TEST_ASSERT_EQUAL(1, format);
TEST_ASSERT_EQUAL(0b10, interval);
}
//
//time
void test_time_set_hours(void){
@@ -215,6 +234,7 @@ void run_watch_tests()
MY_RUN_TEST(test_setting_set_config_time_format);
MY_RUN_TEST(test_setting_set_config_time_update_interval);
MY_RUN_TEST(test_setting_get_config_settings);
MY_RUN_TEST(test_setting_get_config_settings2);
MY_RUN_TEST(test_time_set_hours);
MY_RUN_TEST(test_time_set_minutes);
@@ -227,7 +247,5 @@ void run_watch_tests()
MY_RUN_TEST(test_date_get_date);
MY_RUN_TEST(test_full_watch_configuration);
MY_RUN_TEST(test_full_datetime_overflow_setup);
UnityUnregisterSetupTearDown();
}