@@ -71,7 +71,7 @@ tape( 'the function calculates the cumulative minimum value of a one-dimensional
7171 y = zerosLike ( x ) ;
7272 v = dcumin ( [ x , y ] ) ;
7373
74- expected = new Float64Array ( [ 1.0 , 1 .0, 1 .0, 5 .0, 5 .0, 5 .0 ] ) ;
74+ expected = new Float64Array ( [ 1.0 , - 2 .0, - 4 .0, - 4 .0, - 4 .0, - 4 .0 ] ) ;
7575 t . strictEqual ( v , y , 'returns expected value' ) ;
7676 t . strictEqual ( isSameFloat64Array ( getData ( v ) , expected ) , true , 'returns expected value' ) ;
7777
@@ -80,7 +80,7 @@ tape( 'the function calculates the cumulative minimum value of a one-dimensional
8080 y = zerosLike ( x ) ;
8181 v = dcumin ( [ x , y ] ) ;
8282
83- expected = new Float64Array ( [ - 4.0 , - 4 .0 ] ) ;
83+ expected = new Float64Array ( [ - 4.0 , - 5 .0 ] ) ;
8484 t . strictEqual ( v , y , 'returns expected value' ) ;
8585 t . strictEqual ( isSameFloat64Array ( getData ( v ) , expected ) , true , 'returns expected value' ) ;
8686
@@ -89,7 +89,7 @@ tape( 'the function calculates the cumulative minimum value of a one-dimensional
8989 y = zerosLike ( x ) ;
9090 v = dcumin ( [ x , y ] ) ;
9191
92- expected = new Float64Array ( [ - 0.0 , 0.0 , 0.0 ] ) ;
92+ expected = new Float64Array ( [ - 0.0 , - 0.0 , - 0.0 ] ) ;
9393 t . strictEqual ( v , y , 'returns expected value' ) ;
9494 t . strictEqual ( isSameFloat64Array ( getData ( v ) , expected ) , true , 'returns expected value' ) ;
9595
@@ -169,13 +169,13 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides',
169169 v = dcumin ( [ x , y ] ) ;
170170
171171 expected = new Float64Array ( [
172- 1.0 , // 0
172+ 1.0 , // 0
173173 0.0 ,
174- 2 .0, // 1
174+ 1 .0, // 1
175175 0.0 ,
176- 2.0 , // 2
176+ - 2.0 , // 2
177177 0.0 ,
178- 4 .0, // 3
178+ - 2 .0, // 3
179179 0.0
180180 ] ) ;
181181 t . strictEqual ( v , y , 'returns expected value' ) ;
@@ -212,9 +212,9 @@ tape( 'the function supports one-dimensional ndarrays having negative strides',
212212 v = dcumin ( [ x , y ] ) ;
213213
214214 expected = new Float64Array ( [
215- 3 .0, // 2
216- 3 .0, // 1
217- - 5.0 , // 0
215+ - 5 .0, // 2
216+ - 5 .0, // 1
217+ - 5.0 , // 0
218218 0.0 ,
219219 0.0
220220 ] ) ;
@@ -260,10 +260,10 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets',
260260 expected = new Float64Array ( [
261261 0.0 ,
262262 0.0 ,
263- 1.0 , // 0
264- 1 .0, // 1
265- 2.0 , // 2
266- 4 .0, // 3
263+ 1.0 , // 0
264+ - 2 .0, // 1
265+ - 2.0 , // 2
266+ - 2 .0, // 3
267267 0.0 ,
268268 0.0
269269 ] ) ;
0 commit comments