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