nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib/inkscape_tools: add alternative code generation for gamnit target
[nit.git]
/
tests
/
test_operators.nit
diff --git
a/tests/test_operators.nit
b/tests/test_operators.nit
index
1ad8a84
..
d828220
100644
(file)
--- a/
tests/test_operators.nit
+++ b/
tests/test_operators.nit
@@
-76,6
+76,16
@@
class A
13.output
return 0
end
13.output
return 0
end
+ fun <<(a: A): A
+ do
+ 14.output
+ return a
+ end
+ fun >>(a: A): A
+ do
+ 15.output
+ return a
+ end
init do end
end
init do end
end
@@
-84,6
+94,6
@@
var a = new A
var a2 = new A
var b : Bool
var i: Int
var a2 = new A
var b : Bool
var i: Int
-a = a + -a - a * a / a % a
+a = a + -a - a * a / a % a >> a << a
b = a == a2 and a < a and a > a and a <= a and a >= a
i = a <=> a
b = a == a2 and a < a and a > a and a <= a and a >= a
i = a <=> a