-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest23.js
More file actions
28 lines (24 loc) · 690 Bytes
/
test23.js
File metadata and controls
28 lines (24 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var assert = require("assert");
var assesment = require("./23firstHalf");
describe("it should extract the first half of a string of even length", function() {
it("it should return 'pyt'", function() {
assert.deepEqual(assesment("Python"),
'Pyt');
});
it("it should return 'ja'", function() {
assert.deepEqual(assesment("java"),
'ja');
});
it("it should return 'php'", function() {
assert.deepEqual(assesment("php"),
'php');
});
it("it should return 'javas'", function() {
assert.deepEqual(assesment("javascript"),
'javas');
});
it("it should return 'espon'", function() {
assert.deepEqual(assesment("espon"),
'espon');
});
});