소스 검색

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

(flash has no native Int64 so this cannot work)
Rudy Ges 4 일 전
부모
커밋
0caa00ca66
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      tests/unit/src/unit/issues/Issue12415.hx

+ 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
 	}
 }