Sha256: f39986fa70b62e445ac9b9550fbe2373e1210f03c8465a6229717a3a474870c6

Contents?: true

Size: 1.23 KB

Versions: 141

Compression:

Stored size: 1.23 KB

Contents

var Squares = require('./difference-of-squares');

describe('Squares', function () {
  describe('up to 5', function () {
    var squares = new Squares(5);

    it('gets the square of sums', function () {
      expect(squares.squareOfSums).toBe(225);
    });

    xit('gets the sum of squares', function () {
      expect(squares.sumOfSquares).toBe(55);
    });

    xit('gets the difference', function () {
      expect(squares.difference).toBe(170);
    });
  });

  describe('up to 10', function () {
    var squares = new Squares(10);

    xit('gets the square of sums', function () {
      expect(squares.squareOfSums).toBe(3025);
    });

    xit('gets the sum of squares', function () {
      expect(squares.sumOfSquares).toBe(385);
    });

    xit('gets the difference', function () {
      expect(squares.difference).toBe(2640);
    });
  });

  describe('up to 100', function () {
    var squares = new Squares(100);

    xit('gets the square of sums', function () {
      expect(squares.squareOfSums).toBe(25502500);
    });

    xit('gets the sum of squares', function () {
      expect(squares.sumOfSquares).toBe(338350);
    });

    xit('gets the difference', function () {
      expect(squares.difference).toBe(25164150);
    });
  });
});

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.138 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.137 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.136 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.135 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.134 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.133 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.132 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.131 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.130 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.129 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.128 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.127 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.126 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.125 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.124 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.123 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.122 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.121 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js
trackler-2.2.1.120 tracks/javascript/exercises/difference-of-squares/difference-of-squares.spec.js