Sha256: 98dbcd5feef9ee3f6783d033d32aabe551cc3e9953913d924e54bf4b6b3e528a

Contents?: true

Size: 957 Bytes

Versions: 278

Compression:

Stored size: 957 Bytes

Contents

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

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

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

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

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

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

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

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

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

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

Version data entries

278 entries across 278 versions & 1 rubygems

Version Path
trackler-2.2.1.60 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.59 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.58 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.57 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.56 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.55 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.54 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.53 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.52 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.51 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.50 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.49 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.48 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.47 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.46 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.45 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.44 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.43 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.42 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js
trackler-2.2.1.41 tracks/javascript/exercises/sum-of-multiples/sum-of-multiples.spec.js