Sha256: 05f79580d3ad0b7a05142b0fa62638a2854a8a30aa8574e681f59cc7ebe5daa5

Contents?: true

Size: 210 Bytes

Versions: 49

Compression:

Stored size: 210 Bytes

Contents

#= require array_sum

describe "Array#sum (cs)", ->
  it "returns 0 when the Array is empty", ->
    [].sum().should.equal(0);

  it "returns the sum of numeric elements", ->
    [1,2,3].sum().should.equal(6);

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
konacha-4.0.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.7.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.6.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.5.1 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.5.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.4.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.3.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.2.5 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.2.4 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.2.3 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.2.2 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.2.1 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.2.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.1.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-3.0.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-2.7.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-2.6.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-2.5.1 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-2.5.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
konacha-2.4.0 spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee