소스 검색

add test (closes #2846)

Simon Krajewski 10 년 전
부모
커밋
35e060ee4a
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      tests/unit/src/unit/issues/Issue2846.hx

+ 11 - 0
tests/unit/src/unit/issues/Issue2846.hx

@@ -0,0 +1,11 @@
+package unit.issues;
+
+class Issue2846 extends Test {
+	function test() {
+		var bytes = haxe.io.Bytes.alloc(8);
+		bytes.set(0,0x40);
+		var input = new haxe.io.BytesInput(bytes);
+		input.bigEndian=true;
+		feq(2.0, input.readDouble());
+	}
+}