time tests

This commit is contained in:
Nikita Smith committed 2026-04-20 10:39:50 -07:00
1 parent 9e19fe5193
commit cd4f81d473
4 files changed
+55 -17

No files matched your search

+10
View File
@@ -94,4 +94,14 @@ TEST(bit_array)
}
}
TEST(count_digits)
{
T_Ok(count_digits_u64(0, 10) == 1);
T_Ok(count_digits_u64(99, 10) == 2);
T_Ok(count_digits_u64(999, 10) == 3);
T_Ok(count_digits_u64(9999, 10) == 4);
T_Ok(count_digits_u64(99999, 10) == 5);
T_Ok(count_digits_u64(999999, 10) == 6);
}
#undef T_Group