var test = require('../../src/assertion/ttr')
var contains = require('../../src/array/contains')

test('contains should check for existance', (t) => {
  var arr = [1, 2, 3]
  t.is(contains(arr, 2), true)
  t.is(contains(arr, 4), false)
})

test('contains should return false when array is null/undefined', (t) => {
  t.is(contains(null, 1), false)
  t.is(contains(undefined, 1), false)
})

test.result()

@@ -89,16 +89,136 @@
 ntains')
+%0Avar collection = require('../../src/collection/contains')%0A%0Atest.log('Testing array/contains and collection/contains%5Cn')
 %0A%0Atest('
@@ -340,32 +340,100 @@
 (arr, 4), false)
+%0A%0A  t.is(collection(arr, 2), true)%0A  t.is(collection(arr, 4), false)
 %0A%7D)%0A%0Atest('conta
@@ -529,16 +529,16 @@
  false)%0A
-
   t.is(c
@@ -558,32 +558,116 @@
 ined, 1), false)
+%0A%0A  t.is(collection.arr(null, 1), false)%0A  t.is(collection.arr(undefined, 1), false)
 %0A%7D)%0A%0Atest.result

update test/array/contain -- test collection/contains, add log