tests.sh: soso are always detected as failed tests
[nit.git] / lib / standard / kernel.nit
index 596342c..fb84d2e 100644 (file)
@@ -241,6 +241,11 @@ interface Numeric
        fun zero: OTHER is abstract
 
        # The value of `val` in the domain of `self`
+       #
+       #     assert 1.0.value_of(2) == 2.0
+       #     assert 1.0.value_of(2.0) == 2.0
+       #     assert 1.value_of(2) == 2
+       #     assert 1.value_of(2.0) == 2
        fun value_of(val: Numeric): OTHER is abstract
 end
 
@@ -607,7 +612,7 @@ end
 # Pointer classes are used to manipulate extern C structures.
 extern class Pointer
        # Is the address behind this Object at NULL?
-       fun address_is_null: Bool `{ return recv == NULL; `}
+       fun address_is_null: Bool is extern "address_is_null"
 
        # Free the memory pointed by this pointer
        fun free `{ free(recv); `}