update description for isPrimitive, add 2 tests, isPrimitive & isPrime

This commit is contained in:
Stefan Feješ
2018-01-10 15:19:09 +01:00
parent caed068e91
commit 1cd9b404cb
3 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,7 @@ test('Testing isPrime', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof isPrime === 'function', 'isPrime is a Function');
t.equal(isPrime(11), true, "passed number is a prime");
//t.deepEqual(isPrime(args..), 'Expected');
//t.equal(isPrime(args..), 'Expected');
//t.false(isPrime(args..), 'Expected');