Skip to content

Commit

Permalink
more tests to restore coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasq committed Feb 16, 2020
1 parent 103b1fb commit 5a8ba7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test-qibl.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,8 @@ module.exports = {
t.deepEqual(qibl.subsample([3, 1, 2], 3), [3, 1, 2]);
t.deepEqual(qibl.subsample([3, 1, 2], 7), [3, 1, 2]);

t.deepEqual(qibl.subsample([1, 2, 3], 2, 2, 10), [3]);

t.done();
},

Expand Down Expand Up @@ -1090,7 +1092,7 @@ module.exports = {
qibl.setIterator(C.prototype, iter);
var c = new C();
t.deepEqual(qibl.toArray(c), [5,4,3,2,1]);
t.deepEqual(qibl.toArray(c), [3,2,1]);
t.deepEqual(qibl.toArray(c, function(v,i) { return 2 * v }), [6,4,2]);

t.deepEqual(qibl.toArray(null), []);
t.deepEqual(qibl.toArray({}), []);
Expand Down

0 comments on commit 5a8ba7c

Please sign in to comment.