浏览代码

[tests] hlc NativeArray Bytes comparison (#11614)

Yuxiao Mao 1 年之前
父节点
当前提交
8d0f87d2ca
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      tests/unit/src/unit/issues/Issue11468.hx

+ 19 - 0
tests/unit/src/unit/issues/Issue11468.hx

@@ -0,0 +1,19 @@
+package unit.issues;
+import unit.Test;
+
+class Issue11468 extends Test {
+
+	#if hl
+	function test() {
+		var m = new Map<Int,hl.NativeArray<Int>>();
+		t(m.get(0) == null);
+		var arr = new hl.NativeArray<Int>(1);
+		f(arr == null);
+
+		var b1 = new hl.Bytes(0);
+		t(b1 == null);
+		var b2 = new hl.Bytes(1);
+		f(b2 == null);
+	}
+	#end
+}