-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest16.js
More file actions
23 lines (19 loc) · 706 Bytes
/
test16.js
File metadata and controls
23 lines (19 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var assert = require("assert");
var assesment = require("./16sumFinder");
describe("it should tell whether the sum is present ?", function() {
it("it should return true1", function() {
assert.deepEqual(assesment([6,4,3,2,1,7], 9), true);
});
it("it should return false", function() {
assert.deepEqual(assesment([6,4,3,2,1,7], 2), false);
});
it("it should return true2", function() {
assert.deepEqual(assesment([6,4,3,2,8,2,1,7], 10), true);
});
it("it should return false", function() {
assert.deepEqual(assesment([6,4,3,2,1,7,5,1,3], 19), false);
});
it("it should return false", function() {
assert.deepEqual(assesment([6,41,5,2,3,2,1,7], 15), false);
});
});