Browse Source

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

Simon Krajewski 13 years ago
parent
commit
e418b3c8eb
1 changed files with 2 additions and 2 deletions
  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));