-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.js
More file actions
23 lines (19 loc) · 685 Bytes
/
test2.js
File metadata and controls
23 lines (19 loc) · 685 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("./2find_all_prime_factor_of_a_number");
describe("it should return prime factors", function() {
it("it should return [ 3, 23 ]", function() {
assert.deepEqual(assesment(69), [ 3, 23 ]);
});
it("it should return [ 2, 5, 7 ]", function() {
assert.deepEqual(assesment(70), [ 2, 5, 7 ]);
});
it("it should return [ 5, 17 ]", function() {
assert.deepEqual(assesment(85), [ 5, 17 ]);
});
it("it should return [ 2, 7, 11 ]", function() {
assert.deepEqual(assesment(154), [ 2, 7, 11 ]);
});
it("it should return [ 2, 7, 7 ]", function() {
assert.deepEqual(assesment(98), [ 2, 7, 7 ]);
});
});