From d2a541fdbe93e9607692384fbffbf3adc6f96ffb Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Tue, 19 Mar 2024 09:19:34 +0100 Subject: [PATCH] [tests] hlc NativeArray Bytes comparison --- tests/unit/src/unit/issues/Issue11468.hx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/unit/src/unit/issues/Issue11468.hx diff --git a/tests/unit/src/unit/issues/Issue11468.hx b/tests/unit/src/unit/issues/Issue11468.hx new file mode 100644 index 00000000000..6bbe01e9d63 --- /dev/null +++ b/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>(); + t(m.get(0) == null); + var arr = new hl.NativeArray(1); + f(arr == null); + + var b1 = new hl.Bytes(0); + t(b1 == null); + var b2 = new hl.Bytes(1); + f(b2 == null); + } + #end +} \ No newline at end of file