Sha256: 582c14b44fb6bfe3b8915987330eb66bdb3a5cbedea0e0c7313ace5da428190e

Contents?: true

Size: 912 Bytes

Versions: 188

Compression:

Stored size: 912 Bytes

Contents

import SumOfMultiples from './sum-of-multiples';

describe('SumOfMultiples', () => {
  test('to 1', () => {
    expect(SumOfMultiples([3, 5]).to(1)).toBe(0);
  });

  xtest('to 3', () => {
    expect(SumOfMultiples([3, 5]).to(4)).toBe(3);
  });

  xtest('to 10', () => {
    expect(SumOfMultiples([3, 5]).to(10)).toBe(23);
  });

  xtest('to 100', () => {
    expect(SumOfMultiples([3, 5]).to(100)).toBe(2318);
  });

  xtest('to 1000', () => {
    expect(SumOfMultiples([3, 5]).to(1000)).toBe(233168);
  });

  xtest('[7, 13, 17] to 20', () => {
    expect(SumOfMultiples([7, 13, 17]).to(20)).toBe(51);
  });

  xtest('[4, 6] to 15', () => {
    expect(SumOfMultiples([4, 6]).to(15)).toBe(30);
  });

  xtest('[5, 6, 8] to 150', () => {
    expect(SumOfMultiples([5, 6, 8]).to(150)).toBe(4419);
  });

  xtest('[43, 47] to 10000', () => {
    expect(SumOfMultiples([43, 47]).to(10000)).toBe(2203160);
  });
});

Version data entries

188 entries across 188 versions & 1 rubygems

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