Browse Source

added Array.map/filter to Cs and activated unit tests for it

Simon Krajewski 12 years ago
parent
commit
c07c204c27
2 changed files with 0 additions and 5 deletions
  1. 0 3
      std/cs/_std/Array.hx
  2. 0 2
      tests/unit/unitstd/Array.unit.hx

File diff suppressed because it is too large
+ 0 - 3
std/cs/_std/Array.hx


+ 0 - 2
tests/unit/unitstd/Array.unit.hx

@@ -211,7 +211,6 @@ var b = a.copy();
 a != b;
 a != b;
 b == [];
 b == [];
 
 
-#if (!cpp && !cs && !java)
 // map
 // map
 [1, 2, 3].map(function(i) return i * 2) == [2, 4, 6];
 [1, 2, 3].map(function(i) return i * 2) == [2, 4, 6];
 var a = [new IntWrap(1), new IntWrap(2)];
 var a = [new IntWrap(1), new IntWrap(2)];
@@ -238,5 +237,4 @@ var b : Dynamic = a.filter(function(x) return x & 1 == 0).map(function(x) return
 b.length == 2;
 b.length == 2;
 b[0] = 0;
 b[0] = 0;
 b[1] = 20;
 b[1] = 20;
-#end
 #end
 #end

Some files were not shown because too many files changed in this diff