commit
d3bfbe3487
1 changed files with 3 additions and 3 deletions
|
@ -4,13 +4,13 @@ describe("filterRangeInPlace", function() {
|
||||||
|
|
||||||
let arr = [5, 3, 8, 1];
|
let arr = [5, 3, 8, 1];
|
||||||
|
|
||||||
filterRangeInPlace(arr, 1, 4);
|
filterRangeInPlace(arr, 2, 5);
|
||||||
|
|
||||||
assert.deepEqual(arr, [3, 1]);
|
assert.deepEqual(arr, [5, 3]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("doesn't return anything", function() {
|
it("doesn't return anything", function() {
|
||||||
assert.isUndefined(filterRangeInPlace([1,2,3], 1, 4));
|
assert.isUndefined(filterRangeInPlace([1,2,3], 1, 4));
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue