var assert = require('assert')
var utilities = require('../lib/utilities.js')

describe('utilities', function () {
  describe('caller', function () {
    it('should take a string as a first argument', function () {
      assert.ok(utilities.caller('0'))
    })
    it('should return a function', function () {
      assert.equal('function', typeof utilities.caller('0'))
    })
    it('should return a function that calles a function on its argument, the function name is passed to caller', function () {
      assert.ok(utilities.caller('0')([function () {return true}]))
    })
  })
})
@@ -577,11 +577,333 @@
  %7D)%0A  %7D)
+%0A%0A  describe('runArray', function () %7B%0A    it('should take an array as an argument', function () %7B%0A      assert.ok(utilities.runArray(%5B%5D))%0A    %7D)%0A    it('should run all functions in an array', function () %7B%0A      var tst = 0%0A      assert.equal(2, utilities.runArray(%5Bfunction () %7Btst++%7D, function () %7Btst++%7D%5D))%0A    %7D)%0A  %7D)
 %0A%7D)

Add tests for utilities.runArray