Sfoglia il codice sorgente

Add float processing for cpp too

Hugh Sanderson 16 anni fa
parent
commit
3fee146fc5
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      tests/unit/TestIO.hx

+ 3 - 3
tests/unit/TestIO.hx

@@ -43,7 +43,7 @@ class TestIO extends Test {
 		excv(function() o.writeBytes(b,3,20),OutsideBounds);
 
 		o.writeByte(98);
-		#if (neko || flash9 || php)
+		#if (neko || flash9 || php || cpp)
 		o.writeDouble(1.23);
 		o.writeFloat(1.2e10);
 		#end
@@ -91,7 +91,7 @@ class TestIO extends Test {
 		eq( i.read(5).compare(b.sub(3,5)), 0 );
 
 		eq( i.readByte(), 98 );
-		#if (neko || flash9 || php)
+		#if (neko || flash9 || php || cpp)
 		eq( i.readDouble(), 1.23 );
 		eq( i.readFloat(), 1.2e10 );
 		#else
@@ -133,4 +133,4 @@ class TestIO extends Test {
 		exc( function() i.readBytes(tmp,0,7) );
 	}
 
-}
+}