fix the represntation of at_the_end_of_time to be 63 one bits rather than 32

This commit is contained in:
graham sanderson
2021-02-17 14:15:00 -06:00
committed by Graham Sanderson
parent 8ebe036665
commit db6cc12027
5 changed files with 27 additions and 5 deletions

View File

@ -206,6 +206,15 @@ int main() {
PICOTEST_END_SECTION();
PICOTEST_START_SECTION("end of time");
PICOTEST_CHECK(absolute_time_diff_us(at_the_end_of_time, get_absolute_time()) < 0, "now should be before the end of time")
PICOTEST_CHECK(absolute_time_diff_us(get_absolute_time(), at_the_end_of_time) > 0, "the end of time should be after now")
PICOTEST_CHECK(absolute_time_diff_us(at_the_end_of_time, at_the_end_of_time) == 0, "the end of time should equal itself")
absolute_time_t near_the_end_of_time;
update_us_since_boot(&near_the_end_of_time, 0x7ffffeffffffffff);
PICOTEST_CHECK(absolute_time_diff_us(near_the_end_of_time, at_the_end_of_time) > 0, "near the end of time should be before the end of time")
PICOTEST_END_SECTION();
PICOTEST_END_TEST();
}