Skip to content

Commit

Permalink
[tests] hlc NativeArray Bytes comparison (#11614)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao authored Mar 19, 2024
1 parent c2724bf commit 8d0f87d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/unit/src/unit/issues/Issue11468.hx
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 8d0f87d

Please sign in to comment.