@@ -35,7 +35,7 @@ QUnit.test('Iterator.range', assert => {
3535 assert . deepEqual ( from ( range ( 0 , 0 ) ) , [ ] ) ;
3636 assert . deepEqual ( from ( range ( 0 , 0 , { step : 1 , inclusive : true } ) ) , [ ] ) ;
3737 assert . deepEqual ( from ( range ( 0 , 0 , - 1 ) ) , [ ] , 'start === end with negative step yields nothing' ) ;
38- assert . deepEqual ( from ( range ( 0 , 0 , { step : - 1 , inclusive : true } ) ) , [ ] , 'start === end with negative step inclusive yields nothing ' ) ;
38+ assert . deepEqual ( from ( range ( 0 , 0 , { step : - 1 , inclusive : true } ) ) , [ 0 ] , 'start === end with negative step inclusive yields start ' ) ;
3939 assert . deepEqual ( from ( range ( 0 , - 5 , 1 ) ) , [ ] ) ;
4040
4141 assert . throws ( ( ) => range ( NaN , 0 ) , RangeError , 'NaN as start' ) ;
@@ -104,7 +104,7 @@ QUnit.test('Iterator.range', assert => {
104104 assert . deepEqual ( from ( range ( BigInt ( 0 ) , BigInt ( 0 ) ) ) , [ ] ) ;
105105 assert . deepEqual ( from ( range ( BigInt ( 0 ) , BigInt ( 0 ) , { step : BigInt ( 1 ) , inclusive : true } ) ) , [ ] ) ;
106106 assert . deepEqual ( from ( range ( BigInt ( 0 ) , BigInt ( 0 ) , BigInt ( - 1 ) ) ) , [ ] , 'BigInt: start === end with negative step yields nothing' ) ;
107- assert . deepEqual ( from ( range ( BigInt ( 0 ) , BigInt ( 0 ) , { step : BigInt ( - 1 ) , inclusive : true } ) ) , [ ] , 'BigInt: start === end with negative step inclusive yields nothing ' ) ;
107+ assert . deepEqual ( from ( range ( BigInt ( 0 ) , BigInt ( 0 ) , { step : BigInt ( - 1 ) , inclusive : true } ) ) , [ BigInt ( 0 ) ] , 'BigInt: start === end with negative step inclusive yields start ' ) ;
108108 assert . deepEqual ( from ( range ( BigInt ( 0 ) , BigInt ( - 5 ) , BigInt ( 1 ) ) ) , [ ] ) ;
109109
110110 iterator = range ( BigInt ( 1 ) , BigInt ( 3 ) ) ;
0 commit comments