2
0
Эх сурвалжийг харах

[tests] check == 0 on static, skip Int64.isZero test on flash

(flash has no native Int64 so this cannot work)
Rudy Ges 1 долоо хоног өмнө
parent
commit
0caa00ca66

+ 5 - 0
tests/unit/src/unit/issues/Issue12415.hx

@@ -8,8 +8,13 @@ class Issue12415 extends Test {
 		eq(true, value == null);
 		eq(false, value != null);
 		eq(true, value.isNull());
+
 		#if static
+		eq(true, (cast value) == 0);
+
+		#if !flash
 		eq(true, haxe.Int64.isZero((null:Issue12415Abstract)));
 		#end
+		#end
 	}
 }