Sha256: 6b9d8d74ab0407a68af26586b8f14bd516a028a433e328ee6ef22e393949fdb7

Contents?: true

Size: 337 Bytes

Versions: 2

Compression:

Stored size: 337 Bytes

Contents

#= require spec_helper
#= require tools/array_tools

describe 'array_tools', ->

  describe 'array_unique', ->

    it 'removes duplicate entries from the given array', ->
      modularity.array_unique([1,1,2,2,3]).should.eql [1,2,3]

    it 'works with unsorted arrays', ->
      modularity.array_unique([2,3,1,2,1]).should.eql [1,2,3]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
modularity-rails-0.9.3 demo/spec/javascripts/tools/array_tools_spec.coffee
modularity-rails-0.9.2 demo/spec/javascripts/tools/array_tools_spec.coffee