X-Git-Url: http://nitlanguage.org diff --git a/tests/contracts_expects.nit b/tests/contracts_expects.nit index ec2f4d2..b80b150 100644 --- a/tests/contracts_expects.nit +++ b/tests/contracts_expects.nit @@ -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 @@ -26,7 +26,7 @@ end class MyClass2 fun foo(bool: Bool) is - expects(not bool) + expect(not bool) do if bool then print "FAIL" end