Sha256: e16d5d6741863ff45f2c4a4a4ea6eb0e9d62006a5e0c0ce113e8f396e3d69561
Contents?: true
Size: 1.13 KB
Versions: 236
Compression:
Stored size: 1.13 KB
Contents
import Squares from './difference-of-squares' describe('Squares', () => { describe('up to 5', () => { const squares = new Squares(5) it('gets the square of sums', () => { expect(squares.squareOfSums).toBe(225) }) xit('gets the sum of squares', () => { expect(squares.sumOfSquares).toBe(55) }) xit('gets the difference', () => { expect(squares.difference).toBe(170) }) }) describe('up to 10', () => { const squares = new Squares(10) xit('gets the square of sums', () => { expect(squares.squareOfSums).toBe(3025) }) xit('gets the sum of squares', () => { expect(squares.sumOfSquares).toBe(385) }) xit('gets the difference', () => { expect(squares.difference).toBe(2640) }) }) describe('up to 100', () => { const squares = new Squares(100) xit('gets the square of sums', () => { expect(squares.squareOfSums).toBe(25502500) }) xit('gets the sum of squares', () => { expect(squares.sumOfSquares).toBe(338350) }) xit('gets the difference', () => { expect(squares.difference).toBe(25164150) }) }) })
Version data entries
236 entries across 236 versions & 1 rubygems