-test "Array#copy", ->
+module "Array"
+
+test "#copy", ->
   a = [1,2,3]
   b = a.copy()
   

  ok a.length == b.length, "Both arrays are the same size"
  ok a[0] == b[0] && a[1] == b[1] && a[2] == b[2], "The elements of the two arrays are equal"

test "Array#rand", ->
  array = [1,2,3]
  
  ok array.indexOf(array.rand()) != -1, "Array includes randomly selected element"
  ok [5].rand() == 5, "[5].rand() === 5"
  ok [].rand() == undefined, "[].rand() === undefined"

test "Array#remove", ->
  equals [1,2,3].remove(2), 2, "[1,2,3].remove(2) === 2"
  equals [1,3].remove(2), undefined, "[1,3].remove(2) === undefined"
  equals [1,3].remove(3), 3, "[1,3].remove(3) === 3"

  array.remove(3)
  ok array.length == 1, "array = [1,3]; array.remove(3); array.length === 1"

test "#map", ->
  equals [1].map((x) -> return x + 1 )[0], 2

test "#each", ->
  array = [1, 2, 3]
  count = 0

  equals array, array.each -> count++
  equals array.length, count
         
test "#shuffle", ->
  array = [0, 1, 2, 3, 4, 5]

  shuffledArray = array.shuffle()
