HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.03k stars 648 forks source link

[tests] Add more Null op tests #11641

Open yuxiaomao opened 2 months ago

yuxiaomao commented 2 months ago

When I made the HL implementation for null ops, I found that we can have some more spec tests

It seems work as expected on HL, let's see if tests pass for other target.

yuxiaomao commented 2 months ago

In summary:

Cpp fail because when comparing null <= null, it convert the value to 0 first (I don't think it's really a problem by itself).

Php fail because I added analyzer(ignore) on testOps. Probably the assign does not worked:

var k = false;
f((k = true) ? false : true);
t(k);

Lua: I can't understand the error 😢