Skip to content

Commit

Permalink
[tests] hlc NativeArray Bytes comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Mar 19, 2024
1 parent 790656d commit d2a541f
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 d2a541f

Please sign in to comment.