 assert = require 'assert'
 d      = require '../src/deobjectify'
-
 
 arr = null
 str = null

  setup ->
    arr = ['a', 'b', 'c']
    str = 'abc def'
  
  suite 'slice', ->
    suite 'array', ->
      test 'normal', ->

        assert.strictEqual 'bc', d.sliceTo(1, 3, str)
      test 'curried', ->
        assert.strictEqual 'bc', d.sliceTo(1)(3)(str)

  suite 'concat', ->
    suite 'array', ->
      test 'normal', ->
        assert.deepEqual ['a', 'b', 'c', 'd', 'e'], d.concat(['d', 'e'], arr)
      test 'curried', ->
        assert.deepEqual ['a', 'b', 'c', 'd', 'e'], d.concat(['d', 'e'])(arr)
      test 'does not mutate target', ->
        d.concat(['d', 'e'], arr)
        assert.deepEqual ['a', 'b', 'c'], arr
    suite 'string', ->
      test 'normal', ->
        assert.strictEqual str, d.concat(' def', 'abc')

  suite 'push', ->
    test 'normal', ->
