浏览代码

minor unit test fix for when --no-opt is not in place

Simon Krajewski 13 年之前
父节点
当前提交
e418b3c8eb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/unit/TestIO.hx

+ 2 - 2
tests/unit/TestIO.hx

@@ -62,7 +62,8 @@ class TestIO extends Test {
 		#if !neko
 		// in neko, we can't represent invalid 31 bits integers anyway
 		excv(function() o.writeInt31(1 << 30),Overflow);
-		excv(function() o.writeInt31(-((1 << 30) + 1)),Overflow);
+		excv(function() o.writeInt31( -((1 << 30) + 1)), Overflow);
+		excv(function() o.writeUInt30(0x40 << 24),Overflow);
 		#end
 		o.writeInt8(-5);
 		excv(function() o.writeInt8(128),Overflow);
@@ -75,7 +76,6 @@ class TestIO extends Test {
 		excv(function() o.writeUInt24(-1),Overflow);
 		o.writeUInt30(0x3FAABBCC);
 		excv(function() o.writeUInt30(-1),Overflow);
-		excv(function() o.writeUInt30(0x40 << 24),Overflow);
 
 		o.writeInt32(haxe.Int32.make(0xA0FF,0xEEDD));
 		o.writeInt32(haxe.Int32.make(0xC0FF,0xEEDD));