Skip to content

Commit 63eb441

Browse files
committed
Fix tests to account for changes to listRangeBy() function
1 parent b8352dc commit 63eb441

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,11 @@ describe(`List data type`, function() {
165165
describe(`listRangeBy()`, function() {
166166
it(`should build a list from a range of values and using a custom step function`, function() {
167167
lst5.should.eql(list(0,5,10,15,20,25,30,35,40,45,50));
168+
listRangeBy(10, 0, x => x - 1).should.eql(list(10,9,8,7,6,5,4,3,2,1));
168169
});
169170
it(`should return a singleton list if the start and end values are the same`, function() {
170171
listRangeBy(1, 1).should.eql(list(1));
171172
});
172-
it(`should return the empty list if the start value is greater than the end value`, function() {
173-
listRangeBy(1, 0).should.equal(emptyList);
174-
});
175173
});
176174
describe(`listAppend()`, function() {
177175
it(`should append one list to another`, function() {

0 commit comments

Comments
 (0)