add: itoa && create test_int func to test func return int and test_str to ...
This commit is contained in:
12
tests/itoa.🗿
Normal file
12
tests/itoa.🗿
Normal file
@ -0,0 +1,12 @@
|
||||
main()
|
||||
{
|
||||
local ptr;
|
||||
|
||||
name = "itoa";
|
||||
ptr = itoa(55);
|
||||
test_str(ptr, "55", "");
|
||||
free(ptr);
|
||||
ptr = itoa(0);
|
||||
test_str(ptr, "0", "");
|
||||
free(ptr);
|
||||
}
|
Reference in New Issue
Block a user