Sha256: 5583b41d6c33336dae93efd53e861908e40bdb878e2375af7f62a01163fca6f4
Contents?: true
Size: 1.16 KB
Versions: 208
Compression:
Stored size: 1.16 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
208 entries across 208 versions & 1 rubygems