-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest10.js
28 lines (24 loc) · 864 Bytes
/
test10.js
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("./10inplace");
describe("it should reverse words in place", function() {
it("it should return 'uoy era a ecin edud'", function() {
assert.deepEqual(assesment('you are a nice dude'),
'uoy era a ecin edud');
});
it("it should return 'yeh sti em'", function() {
assert.deepEqual(assesment('hey its me'),
'yeh sti em');
});
it("it should return 'gnihtyreve lliw eb enif'", function() {
assert.deepEqual(assesment('everything will be fine'),
'gnihtyreve lliw eb enif');
});
it("it should return 'uoy tsum eb a yug'", function() {
assert.deepEqual(assesment('you must be a guy'),
'uoy tsum eb a yug');
});
it("it should return 'ereh ti si eht hturt'", function() {
assert.deepEqual(assesment('here it is the truth'),
'ereh ti si eht hturt');
});
});