Permalink
Browse files
Implement arithmetic comparisons. Caught by spec test.
- Loading branch information...
Showing
with
8 additions
and
0 deletions.
-
+8
−0
core/expr_eval.py
|
|
@@ -527,6 +527,14 @@ def Eval(self, node): |
|
|
return i1 == i2
|
|
|
if op_id == Id.BoolBinary_ne:
|
|
|
return i1 != i2
|
|
|
if op_id == Id.BoolBinary_gt:
|
|
|
return i1 > i2
|
|
|
if op_id == Id.BoolBinary_ge:
|
|
|
return i1 >= i2
|
|
|
if op_id == Id.BoolBinary_lt:
|
|
|
return i1 < i2
|
|
|
if op_id == Id.BoolBinary_le:
|
|
|
return i1 <= i2
|
|
|
|
|
|
raise NotImplementedError(op_id)
|
|
|
|
|
|
|
0 comments on commit
53a8677