Functions are successfully called, read more

Return keyword is not yet implemented.

Functions are untested.

See #163
This commit is contained in:
2025-02-17 14:05:07 +11:00
parent 76d89fe0ad
commit 02dfc996b4
12 changed files with 193 additions and 27 deletions

View File

@@ -369,7 +369,7 @@ int test_value_stringify(void) {
//check
if (string->info.type != TOY_STRING_LEAF ||
strcmp(string->leaf.data, "null") != 0)
strcmp(string->leaf.data, "<null>") != 0)
{
fprintf(stderr, TOY_CC_ERROR "ERROR: stringify 'null' failed\n" TOY_CC_RESET);
Toy_freeString(string);
@@ -395,7 +395,7 @@ int test_value_stringify(void) {
//check
if (string->info.type != TOY_STRING_LEAF ||
strcmp(string->leaf.data, "true") != 0)
strcmp(string->leaf.data, "<true>") != 0)
{
fprintf(stderr, TOY_CC_ERROR "ERROR: stringify boolean 'true' failed\n" TOY_CC_RESET);
Toy_freeString(string);
@@ -421,7 +421,7 @@ int test_value_stringify(void) {
//check
if (string->info.type != TOY_STRING_LEAF ||
strcmp(string->leaf.data, "false") != 0)
strcmp(string->leaf.data, "<false>") != 0)
{
fprintf(stderr, TOY_CC_ERROR "ERROR: stringify boolean 'false' failed\n" TOY_CC_RESET);
Toy_freeString(string);