Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('prime numbers detector',function(){
- it('avoids 1',function(){
- expect(isPrime(1)).toBe(false);
- });
- it('detects 2',function(){
- expect(isPrime(2)).toBe(true);
- });
- it('detects 3',function(){
- expect(isPrime(3)).toBe(true);
- });
- it('avoids 4',function(){
- expect(isPrime(4)).toBe(false);
- });
- });
Add Comment
Please, Sign In to add comment