Explorar o código

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

Simon Krajewski %!s(int64=12) %!d(string=hai) anos
pai
achega
c07c204c27
Modificáronse 2 ficheiros con 0 adicións e 5 borrados
  1. 0 3
      std/cs/_std/Array.hx
  2. 0 2
      tests/unit/unitstd/Array.unit.hx

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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;
 b == [];
 
-#if (!cpp && !cs && !java)
 // map
 [1, 2, 3].map(function(i) return i * 2) == [2, 4, 6];
 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[0] = 0;
 b[1] = 20;
-#end
 #end

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio