Browse Source

actually make a != b check something

Simon Krajewski 11 năm trước cách đây
mục cha
commit
81d518cc9f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tests/unit/UnitBuilder.hx

+ 2 - 0
tests/unit/UnitBuilder.hx

@@ -138,6 +138,8 @@ class UnitBuilder {
 							macro { $a{el2}; };
 					case EBinop(OpEq, e1, e2):
 						mkEq(e1, e2, e.pos);
+					case EBinop(OpNotEq, e1, e2):
+						macro t($e1 != $e2);
 					case EBinop(OpGt | OpGte | OpLt | OpLte, _, _):
 						{
 							expr: (macro t($e)).expr,