add: positive num test to ntoa_s

This commit is contained in:
2023-07-26 23:35:52 +02:00
parent 21c78421a4
commit e417a01f9a
2 changed files with 59 additions and 0 deletions

View File

@ -23,4 +23,12 @@ main()
ptr = ntoa_s(0 - 1);
test_str(ptr, "-1", "");
free(ptr);
ptr = ntoa_s(0 - 3);
test_str(ptr, "-3", "");
free(ptr);
ptr = ntoa_s(3);
test_str(ptr, "3", "");
free(ptr);
}