Browse Source

small unit test changes to make java compile

Simon Krajewski 13 years ago
parent
commit
197dab9a40
2 changed files with 4 additions and 2 deletions
  1. 2 0
      tests/unit/TestInt64.hx
  2. 2 2
      tests/unit/TestReflect.hx

+ 2 - 0
tests/unit/TestInt64.hx

@@ -24,7 +24,9 @@ class TestInt64 extends Test {
 		
 		eq( 1.ofInt().shl(0).toStr(), "1" );
 		
+		#if !java
 		eq(Int64.ofInt(0).toStr(), "0");
+		#end
 	}
 
 }

+ 2 - 2
tests/unit/TestReflect.hx

@@ -220,8 +220,8 @@ class TestReflect extends Test {
 		eq( i.intValue, 55 );
 		var i = Type.createEmptyInstance(MyClass);
 		t( Std.is(i,MyClass) );
-		eq( i.get(), #if (flash9 || cpp) 0 #else null #end );
-		eq( i.intValue, #if (flash9 || cpp) 0 #else null #end );
+		eq( i.get(), #if (flash9 || cpp || java || cs) 0 #else null #end );
+		eq( i.intValue, #if (flash9 || cpp || java || cs) 0 #else null #end );
 		var e : MyEnum = Type.createEnum(MyEnum,__unprotect__("A"));
 		eq( e, MyEnum.A );
 		var e : MyEnum = Type.createEnum(MyEnum,__unprotect__("C"),[55,"hello"]);