Sha256: c9dc54c792b0929e7725bc21fc054c7a12b477bddc16c960737ce8f6e730445c

Contents?: true

Size: 993 Bytes

Versions: 118

Compression:

Stored size: 993 Bytes

Contents

var SumOfMultiples = require('./sum-of-multiples');

describe('SumOfMultiples', function () {
  it('to 1', function () {
    expect(new SumOfMultiples([3, 5]).to(1)).toBe(0);
  });

  xit('to 3', function () {
    expect(new SumOfMultiples([3, 5]).to(4)).toBe(3);
  });

  xit('to 10', function () {
    expect(new SumOfMultiples([3, 5]).to(10)).toBe(23);
  });

  xit('to 100', function () {
    expect(new SumOfMultiples([3, 5]).to(100)).toBe(2318);
  });

  xit('to 1000', function () {
    expect(new SumOfMultiples([3, 5]).to(1000)).toBe(233168);
  });

  xit('[7, 13, 17] to 20', function () {
    expect(new SumOfMultiples([7, 13, 17]).to(20)).toBe(51);
  });

  xit('[4, 6] to 15', function () {
    expect(new SumOfMultiples([4, 6]).to(15)).toBe(30);
  });

  xit('[5, 6, 8] to 150', function () {
    expect(new SumOfMultiples([5, 6, 8]).to(150)).toBe(4419);
  });

  xit('[43, 47] to 10000', function () {
    expect(new SumOfMultiples([43, 47]).to(10000)).toBe(2203160);
  });
});

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.179 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.178 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.177 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.176 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.175 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.174 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.173 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.172 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.171 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.170 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.169 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.167 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.166 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.165 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.164 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.163 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.162 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.161 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.160 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js