-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
78 lines (58 loc) · 2.28 KB
/
test.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
const assert = require('power-assert');
const calculator = require('.');
describe('calculator', () => {
it('Rank 1 should have 25 LP limit', () => {
assert.strictEqual(calculator.getLpByRank(1), 25);
});
it('Rank 12 should have 31 LP limit', () => {
assert.strictEqual(calculator.getLpByRank(12), 31);
});
it('Rank 57 should have 53 LP limit', () => {
assert.strictEqual(calculator.getLpByRank(57), 53);
});
it('Rank 403 should have 209 LP limit', () => {
assert.strictEqual(calculator.getLpByRank(403), 209);
});
it('Rank 460 should have 228 LP limit', () => {
assert.strictEqual(calculator.getLpByRank(460), 228);
});
it('Rank 550 should have 258 LP limit', () => {
assert.strictEqual(calculator.getLpByRank(550), 258);
});
it('Rank 777 should have 334 LP limit', () => {
assert.strictEqual(calculator.getLpByRank(777), 334);
});
it('Rank 810 should have 341 LP limit', () => {
assert.strictEqual(calculator.getLpByRank(810), 341);
});
it('Rank 1 should have 10 Friends limit', () => {
assert.strictEqual(calculator.getFriendsByRank(1), 10);
});
it('Rank 5 should have 11 Friends limit', () => {
assert.strictEqual(calculator.getFriendsByRank(5), 11);
});
it('Rank 10 should have 12 Friends limit', () => {
assert.strictEqual(calculator.getFriendsByRank(10), 12);
});
it('Rank 50 should have 20 Friends limit', () => {
assert.strictEqual(calculator.getFriendsByRank(50), 20);
});
it('Rank 60 should have 21 Friends limit', () => {
assert.strictEqual(calculator.getFriendsByRank(60), 21);
});
it('Rank 840 should have 99 Friends limit', () => {
assert.strictEqual(calculator.getFriendsByRank(840), 99);
});
it('Rank 841 should have 99 Friends limit', () => {
assert.strictEqual(calculator.getFriendsByRank(841), 99);
});
it('Rank 3 should have 8 EXP', () => {
assert.strictEqual(calculator.getExpByRank(3), 8);
});
it('Rank 100 should have 2894 EXP', () => {
assert.strictEqual(calculator.getExpByRank(100), 2894);
});
it('Rank 203 should have 6442 EXP', () => {
assert.strictEqual(calculator.getExpByRank(203), 6442);
});
});