3 #include "ntp_stdlib.h"
4 #include "ntp_calendar.h"
9 void test_RegularPositive() {
10 const char *str = "305";
13 TEST_ASSERT_TRUE(atouint(str, &actual));
14 TEST_ASSERT_EQUAL(305, actual);
17 void test_PositiveOverflowBoundary() {
18 const char *str = "4294967296";
21 TEST_ASSERT_FALSE(atouint(str, &actual));
24 void test_PositiveOverflowBig() {
25 const char *str = "8000000000";
28 TEST_ASSERT_FALSE(atouint(str, &actual));
31 void test_Negative() {
32 const char *str = "-1";
35 TEST_ASSERT_FALSE(atouint(str, &actual));
38 void test_IllegalChar() {
39 const char *str = "50c3";
42 TEST_ASSERT_FALSE(atouint(str, &actual));