contracts: change the contract syntax
[nit.git] / tests / contracts_expects_2.nit
index 3af9ebb..805c255 100644 (file)
@@ -17,7 +17,7 @@
 class MyClass
        fun foo(x: Int)
        is
-               expects(x > 0)
+               expect(x > 0)
        do
                if x <= 0 then print "FAIL"
        end
@@ -28,7 +28,7 @@ class SubClass
 
        redef fun foo(x: Int)
        is
-               expects(x == 0)
+               expect(x == 0)
        do
                if x < 0 then print "FAIL"
        end