-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest11.js
More file actions
23 lines (19 loc) · 742 Bytes
/
test11.js
File metadata and controls
23 lines (19 loc) · 742 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("./11first_non-repeating_char");
describe("it should return first non-repeating character", function() {
it("it should return 'f'", function() {
assert.deepEqual(assesment('the quick brown fox jumps then quickly blow air'),'f');
});
it("it should return 'y'", function() {
assert.deepEqual(assesment('you are a nice dude'), 'y');
});
it("it should return 'v'", function() {
assert.deepEqual(assesment('everything will be fine'),'v');
});
it("it should return 'o'", function() {
assert.deepEqual(assesment('you must be a guy'), 'o');
});
it("it should return 's'", function() {
assert.deepEqual(assesment('here it is the truth'), 's');
});
});