'use strict';
var quickmap = require('../lib/quickMap');
var chai = require('chai');
chai.should();
describe("quickmap", function() {
    it('should work',function(){
        quickmap([1,2,3,4,5],function(a){
            return a*a;
        }).should.deep.equal([1,4,9,16,25]);
    });
    it('should work with an empty array',function(){
        quickmap([],function(a){
            return a*a;
        }).should.deep.equal([]);
    });
});

@@ -16,19 +16,20 @@
 ar quick
-map
+each
  = requi
@@ -48,11 +48,12 @@
 uick
-Map
+Each
 ');%0A
@@ -110,19 +110,20 @@
 e(%22quick
-map
+each
 %22, funct
@@ -155,32 +155,54 @@
 rk',function()%7B%0A
+        var out = %5B%5D;%0A
         quickmap
@@ -198,19 +198,20 @@
    quick
-map
+each
 (%5B1,2,3,
@@ -236,34 +236,37 @@
             
-return 
+out.push(
 a*a
+)
 ;%0A        %7D)
@@ -257,32 +257,45 @@
 a*a);%0A        %7D)
+;%0A        out
 .should.deep.equ
@@ -366,32 +366,54 @@
 ay',function()%7B%0A
+        var out = %5B%5D;%0A
         quickmap
@@ -413,11 +413,12 @@
 uick
-map
+each
 (%5B%5D,
@@ -446,18 +446,21 @@
     
-return 
+out.push(
 a*a
+)
 ;%0A  
@@ -467,16 +467,28 @@
       %7D)
+%0A        out
 .should.

fix tests