Skip to content

Commit fc0bfff

Browse files
Aliaksei BychykAliaksei Bychyk
authored andcommitted
improve get3TopItems test
1 parent 8c2a4c4 commit fc0bfff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/04-arrays-tests.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,12 @@ describe('04-arrays-tasks', () => {
449449
}, {
450450
arr: [10, 10, 10, 10],
451451
expected: [10, 10, 10]
452+
}, {
453+
arr: [4, 1, 9, 3, 1, 5],
454+
expected: [9, 5, 4]
455+
}, {
456+
arr: [30, -4, -27, 0, -2],
457+
expected: [30, 0, -2]
452458
}
453459
].forEach(data => {
454460
const actual = get3TopItems(data.arr);

0 commit comments

Comments
 (0)