-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsimple.test.js
42 lines (35 loc) · 953 Bytes
/
simple.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
import test from 'test';
import assert from 'assert';
function doSomeMath(a, b) {
return a + b;
}
test('checking multiple addition values (1)', () => {
for (let a = 1; a < 10; a++) {
assert.equal(doSomeMath(a, 5), a + 5);
}
});
test('checking multiple addition values (2)', () => {
for (let a = 1; a < 10; a++) {
assert.equal(doSomeMath(a, 5), a + 6);
}
});
test('checking multiple addition values (3)', () => {
for (let a = 1; a < 10; a++) {
assert.equal(doSomeMath(a, 5), a + 5);
}
});
test('checking multiple addition values (4)', () => {
for (let a = 1; a < 10; a++) {
assert.equal(doSomeMath(a, 5), a + 5);
}
});
test('checking multiple addition values (5)', { ignore: true }, () => {
for (let a = 1; a < 10; a++) {
assert.equal(doSomeMath(a, 5), a + 5);
}
});
test('checking multiple addition values (6)', () => {
for (let a = 1; a < 10; a++) {
assert.equal(doSomeMath(a, 5), a + 5);
}
});