X-Git-Url: http://nitlanguage.org diff --git a/tests/test_ffi_c_super.nit b/tests/test_ffi_c_super.nit index d9672bc..8b241ff 100644 --- a/tests/test_ffi_c_super.nit +++ b/tests/test_ffi_c_super.nit @@ -21,7 +21,7 @@ end class B super A - redef fun id : String import super, String::from_cstring, String::to_cstring `{ + redef fun id : String import super, NativeString.to_s, String.to_cstring `{ char *new_name; char *prefix = "B special "; char *super_name = String_to_cstring( B_id___super( recv ) ); @@ -31,7 +31,7 @@ class B strcpy( new_name+strlen( prefix ), super_name ); new_name[ strlen( prefix )+strlen( super_name ) ] = '\0'; - return new_String_from_cstring( new_name ); + return NativeString_to_s( new_name ); `} end