Sha256: 95c9445f21645961ddde97d573e2bb45c630c1e9d9f0251f6a3b2ac76db50696
Contents?: true
Size: 503 Bytes
Versions: 185
Compression:
Stored size: 503 Bytes
Contents
import Prime from './nth-prime'; describe('Prime', () => { const prime = new Prime(); test('first', () => { expect(prime.nth(1)).toEqual(2); }); xtest('second', () => { expect(prime.nth(2)).toEqual(3); }); xtest('sixth', () => { expect(prime.nth(6)).toEqual(13); }); xtest('big prime', () => { expect(prime.nth(10001)).toEqual(104743); }); xtest('weird case', () => { expect(() => prime.nth(0)) .toThrow(new Error('Prime is not possible')); }); });
Version data entries
185 entries across 185 versions & 1 rubygems