Skip to content

Commit a687639

Browse files
authored
Merge pull request #7 from chs-mix/francesca-branch
fixed tests
2 parents 77ebd13 + 26fa6ba commit a687639

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

test/algorithms/math/testPrime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const assert = require('assert');
66
describe('isPrime', () => {
77
it('should return true if number is prime', () => {
88
assert.equal(isprime(2), true);
9-
assert.equal(isprime(33), true);
9+
assert.equal(isprime(3), true);
1010
assert.equal(isprime(7), true);
11-
assert.equal(isprime(37), true);
11+
assert.equal(isprime(5), true);
1212
});
1313
it('should return false if number is prime', () => {
1414
assert.equal(isprime(16), false);

test/algorithms/math/testSumAll.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ describe('sumALL', () => {
88
assert.equal(sumall(2, 5), 14);
99
assert.equal(sumall(1, 3), 6);
1010
assert.equal(sumall(3, 6), 18);
11-
assert.equal(sumall(37), true);
1211
});
1312
});

test/algorithms/search/testNaiveSearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('Naive Search', () => {
66
it('should return frequency of the pattern', () => {
77
const freq = naivesearch('akgjfjhuyutomatokajkhgsvkjrtomato', 'tomato');
88

9-
assert.equal(freq, 1);
9+
assert.equal(freq, 2);
1010
});
1111

1212
it('should return frequency of the pattern', () => {

0 commit comments

Comments
 (0)