royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs] branch develop updated: Added more BinaryData tests
Date Sun, 24 Jun 2018 12:11:52 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new ae52b94  Added more BinaryData tests
ae52b94 is described below

commit ae52b9405a4f83101bd5b5d4aba76378eeaa0bd9
Author: Harbs <harbs@in-tools.com>
AuthorDate: Sun Jun 24 15:11:45 2018 +0300

    Added more BinaryData tests
---
 .../royale/flexUnitTests/core/BinaryDataTesterTest.as  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/manualtests/UnitTests/src/main/royale/flexUnitTests/core/BinaryDataTesterTest.as
b/manualtests/UnitTests/src/main/royale/flexUnitTests/core/BinaryDataTesterTest.as
index 420cc93..d731ae0 100644
--- a/manualtests/UnitTests/src/main/royale/flexUnitTests/core/BinaryDataTesterTest.as
+++ b/manualtests/UnitTests/src/main/royale/flexUnitTests/core/BinaryDataTesterTest.as
@@ -578,6 +578,24 @@ package flexUnitTests.core
 			Assert.assertEquals("BinaryData readShort: should be 513", 513, ba.readShort());
 			Assert.assertEquals("BinaryData readInt: should be 100992003", 100992003, ba.readInt());
 
+			ba = new BinaryData();
+			ba.writeByte(25);
+			ba.writeShort(1029);
+			ba.writeUnsignedInt(4294967295);
+			ba.position = 0;
+			Assert.assertEquals("BinaryData readByte: should be 25", 25, ba.readByte());
+			Assert.assertEquals("BinaryData readShort: should be 1029", 1029, ba.readShort());
+			Assert.assertEquals("BinaryData readInt: should be 4294967295", 4294967295, ba.readUnsignedInt());
+
+			ba = new BinaryData();
+			ba.writeByte(-25);
+			ba.writeShort(-1029);
+			ba.writeInt(-131072);
+			ba.position = 0;
+			Assert.assertEquals("BinaryData readByte: should be -25", -25, ba.readByte());
+			Assert.assertEquals("BinaryData readShort: should be -1029", -1029, ba.readShort());
+			Assert.assertEquals("BinaryData readInt: should be -131072", -131072, ba.readInt());
+
 		}
 
 


Mime
View raw message