Sha256: af2f264d6b7d92443053b3afd9ac7c83ab71a91760ba7ba7ae83e390fe0a6494

Contents?: true

Size: 517 Bytes

Versions: 126

Compression:

Stored size: 517 Bytes

Contents

var prime = require('./nth-prime');

describe('Prime', function () {
  it('first', function () {
    expect(prime.nth(1)).toEqual(2);
  });

  xit('second', function () {
    expect(prime.nth(2)).toEqual(3);
  });

  xit('sixth', function () {
    expect(prime.nth(6)).toEqual(13);
  });

  xit('big prime', function () {
    expect(prime.nth(10001)).toEqual(104743);
  });

  xit('weird case', function () {
    expect( function () {
      prime.nth(0);
    }).toThrow(new Error('Prime is not possible'));
  });
});

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
trackler-2.2.1.43 tracks/javascript/exercises/nth-prime/nth-prime.spec.js
trackler-2.2.1.42 tracks/javascript/exercises/nth-prime/nth-prime.spec.js
trackler-2.2.1.41 tracks/javascript/exercises/nth-prime/nth-prime.spec.js
trackler-2.2.1.40 tracks/javascript/exercises/nth-prime/nth-prime.spec.js
trackler-2.2.1.39 tracks/javascript/exercises/nth-prime/nth-prime.spec.js
trackler-2.2.1.38 tracks/javascript/exercises/nth-prime/nth-prime.spec.js