add: itoa && create test_int func to test func return int and test_str to ...

This commit is contained in:
2023-06-18 12:39:18 +02:00
parent 60ca301082
commit 496b92aed9
6 changed files with 95 additions and 11 deletions

12
tests/itoa.🗿 Normal file
View 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);
}