Sha256: 931ed822ea13118f1bea981dfbe6122262892e277ea7b5194ae2490076e05ed2

Contents?: true

Size: 874 Bytes

Versions: 139

Compression:

Stored size: 874 Bytes

Contents

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

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

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

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

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

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

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

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

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

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

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.138 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.137 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.136 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.135 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.134 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.133 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.132 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.131 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.130 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.129 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.128 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.127 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.126 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.125 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.124 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.123 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.122 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.121 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts
trackler-2.2.1.120 tracks/typescript/exercises/sum-of-multiples/sum-of-multiples.test.ts