-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest28.js
More file actions
23 lines (19 loc) · 693 Bytes
/
test28.js
File metadata and controls
23 lines (19 loc) · 693 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("./28rearrangement_characters");
describe("it should check rearrange characters", function() {
it("it should return true1", function() {
assert.deepEqual(assesment('xyz','zyx'), true);
});
it("it should return false", function() {
assert.deepEqual(assesment('xyz','zyp'), false);
});
it("it should return true2", function() {
assert.deepEqual(assesment('ritesh','terihs'), true);
});
it("it should return false", function() {
assert.deepEqual(assesment('mistake','mikaer'), false);
});
it("it should return true3", function() {
assert.deepEqual(assesment('logrithm','thmilogr'), true);
});
});