X-Git-Url: http://nitlanguage.org diff --git a/tests/test_ffi_c_casts.nit b/tests/test_ffi_c_casts.nit index 1511348..8a497fa 100644 --- a/tests/test_ffi_c_casts.nit +++ b/tests/test_ffi_c_casts.nit @@ -47,7 +47,7 @@ fun callbacks_with_as_casts(a: A, b: B) import B.foo, A.foo, B.as(A), A.as(B) `{ B_foo(bb); `} -fun callbacks_with_nullable_casts(a: A, b: nullable B) import B as not nullable, A as nullable, A.as(nullable B), B.foo `{ +fun callbacks_with_nullable_casts(a: A, b: nullable B) import B.as not nullable, A.as nullable, A.as(nullable B), B.foo `{ if (!nullable_B_is_a_B(b)) { printf("Instance b is not a B (it is null)\n"); } else { @@ -63,7 +63,7 @@ fun callbacks_with_nullable_casts(a: A, b: nullable B) import B as not nullable, } `} -fun callbacks_with_failed_checks(a: A, b: nullable B) import B as not nullable, B as nullable, A.as(B), B.as(A) `{ +fun callbacks_with_failed_checks(a: A, b: nullable B) import B.as not nullable, B.as nullable, A.as(B), B.as(A) `{ if (!A_is_a_B(a)) { printf("Instance of A is not a B.\n"); }