test: update tests
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user