nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Contract: Change mpropdef driving
[nit.git]
/
tests
/
contracts_expects.nit
diff --git
a/tests/contracts_expects.nit
b/tests/contracts_expects.nit
index
ec2f4d2
..
b80b150
100644
(file)
--- a/
tests/contracts_expects.nit
+++ b/
tests/contracts_expects.nit
@@
-17,7
+17,7
@@
class MyClass
fun foo(x: Int)
is
class MyClass
fun foo(x: Int)
is
- expects(x > 0)
+ expect(x > 0)
do
if x <= 0 then print "FAIL"
end
do
if x <= 0 then print "FAIL"
end
@@
-26,7
+26,7
@@
end
class MyClass2
fun foo(bool: Bool)
is
class MyClass2
fun foo(bool: Bool)
is
- expects(not bool)
+ expect(not bool)
do
if bool then print "FAIL"
end
do
if bool then print "FAIL"
end