Skip to content

Commit 2753d15

Browse files
committed
Move test file
1 parent 1487803 commit 2753d15

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

test/test.js renamed to test/units/test.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/* global describe, it */
1212

13-
import 'should';
13+
//import 'should';
1414

1515
import {
1616
LT,
@@ -56,6 +56,9 @@ import {
5656
} from '../source';
5757

5858
describe(`List data type`, function() {
59+
60+
debugger;
61+
5962
const lst1 = list(1,2,3);
6063
const lst2 = list(4,5,6);
6164
const lst3 = list();
@@ -64,6 +67,8 @@ describe(`List data type`, function() {
6467
const lst6 = list(1,1,4,4,9,9,6,6,3,3,8,8,7,7,5,5,2,2,10,10);
6568
const lst7 = list(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10);
6669
const lst8 = list(20,19,18,17,16,15,14,13,12,11,10,1,2,3,4,5,6,7,8,9);
70+
const lst9 = listRange(10, 0);
71+
const lst10 = listRangeBy(10, 0, function(x) { return x - 1 });
6772
const sorted = list(1,2,3,4,5,6,7,8,9,10);
6873
const unsorted = list(10,9,8,7,6,5,4,3,2,1);
6974
const f = x => x * 10;
@@ -158,14 +163,18 @@ describe(`List data type`, function() {
158163
});
159164
});
160165
describe(`listRange()`, function() {
161-
it(`should build a list from a range of values`, function() {
162-
lst4.should.eql(list(0,1,2,3,4,5,6,7,8,9,10));
166+
it.only(`should build a list from a range of values`, function() {
167+
//lst4.should.eql(list(0,1,2,3,4,5,6,7,8,9,10));
168+
lst9.should.eql(list(10,9,8,7,6,5,4,3,2,1));
169+
});
170+
it(`should return a singleton list if the start and end values are the same`, function() {
171+
listRange(1, 1).should.eql(list(1));
163172
});
164173
});
165174
describe(`listRangeBy()`, function() {
166175
it(`should build a list from a range of values and using a custom step function`, function() {
167176
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));
177+
lst10.should.eql(list(10,9,8,7,6,5,4,3,2,1));
169178
});
170179
it(`should return a singleton list if the start and end values are the same`, function() {
171180
listRangeBy(1, 1).should.eql(list(1));
@@ -284,7 +293,7 @@ describe(`List data type`, function() {
284293
});
285294
});
286295
describe(`reverse()`, function() {
287-
it(`should `, function() {
296+
it(`should reverse a list`, function() {
288297
reverse(lst1).should.eql(list(3,2,1));
289298
});
290299
});

0 commit comments

Comments
 (0)