metrics: refactor RTA metrics
[nit.git] / tests / test_ffi_c_callback_extern_receiver.nit
index 7299f4a..477dfc1 100644 (file)
@@ -29,11 +29,11 @@ extern Test
         return foobar;
     `}
 
-    fun test_me is extern import Test::foo, String::from_cstring `{
+    fun test_me is extern import Test.foo, NativeString.to_s `{
         int i;
         for(i = 0; i < 2000; ++i) {
             printf("%d\n", i);
-            Test_foo(recv, new_String_from_cstring("asdf"));
+            Test_foo(recv, NativeString_to_s("asdf"));
         }
     `}