-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest29.js
More file actions
23 lines (19 loc) · 757 Bytes
/
test29.js
File metadata and controls
23 lines (19 loc) · 757 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("./29sort_prime");
describe("it should sort the prime number", function() {
it("it should return [ 2, 3, 5 ]", function() {
assert.deepEqual(assesment(5), [ 2, 3, 5 ]);
});
it("it should return [ 2, 3, 5, 7, 11 ]", function() {
assert.deepEqual(assesment(11), [ 2, 3, 5, 7, 11 ]);
});
it("it should return [ 2, 3, 5, 7, 11, 13, 17, 19 ]", function() {
assert.deepEqual(assesment(19), [ 2, 3, 5, 7, 11, 13, 17, 19 ]);
});
it("it should return [ 2, 3, 5, 7 ]", function() {
assert.deepEqual(assesment(7), [ 2, 3, 5, 7 ]);
});
it("it should return [ 2, 3, 5, 7, 11 ]", function() {
assert.deepEqual(assesment(11), [ 2, 3, 5, 7, 11 ]);
});
});