test: update tests

This commit is contained in:
2026-05-25 17:35:09 +01:00
parent 5e3439bc4a
commit 01cbcf712a
5 changed files with 16 additions and 11 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ static fx_string *create_string(const fx_type *ty)
}
printf("found fx.string.create_from_cstr()\n");
fx_value args[] = {FX_VALUE_CSTR("Hello, world!")};
fx_value args[] = {FX_CSTR("Hello, world!")};
fx_value result = FX_VALUE_EMPTY;
fx_status status = fx_function_invoke(
string_create,
@@ -43,7 +43,7 @@ static const char *get_cstr(const fx_type *ty, fx_string *str)
}
printf("found fx.string.get_cstr()\n");
fx_value args[] = {FX_VALUE_POINTER(str)};
fx_value args[] = {FX_POINTER(str)};
fx_value result = FX_VALUE_EMPTY;
fx_status status = fx_function_invoke(
get_cstr,