2121// MODULES //
2222
2323var tape = require ( 'tape' ) ;
24- var add = require ( '@stdlib/math/base/ops/add5' )
24+ var add = require ( '@stdlib/math/base/ops/add5' ) ;
2525var zeros5d = require ( '@stdlib/array/base/zeros5d' ) ;
2626var bquinary5d = require ( './../lib' ) ;
2727
@@ -45,22 +45,22 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
4545 var u ;
4646
4747 shapes = [
48- [ 2 ] ,
48+ [ 2 ] ,
4949 [ 2 , 1 ] ,
5050 [ 1 , 1 ] ,
5151 [ 1 ] ,
5252 [ 1 , 2 ] ,
53- [ 2 , 2 , 2 , 2 , 2 ]
54- ] ;
55- x = [ 1.0 , 2.0 ] ;
56- y = [
57- [ 3.0 ] ,
58- [ 4.0 ]
59- ] ;
60- z = [ [ 5.0 ] ] ;
61- w = [ 1.0 ] ;
62- u = [ [ 1.0 , 2.0 ] ] ;
63- out = zeros5d ( shapes [ 5 ] ) ;
53+ [ 2 , 2 , 2 , 2 , 2 ]
54+ ] ;
55+ x = [ 1.0 , 2.0 ] ;
56+ y = [
57+ [ 3.0 ] ,
58+ [ 4.0 ]
59+ ] ;
60+ z = [ [ 5.0 ] ] ;
61+ w = [ 1.0 ] ;
62+ u = [ [ 1.0 , 2.0 ] ] ;
63+ out = zeros5d ( shapes [ 5 ] ) ;
6464
6565 expected = [
6666 [
@@ -167,30 +167,30 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
167167 ]
168168 ]
169169 ]
170- ] ;
171- bquinary5d ( [ x , y , z , w , u , out ] , shapes , add ) ;
170+ ] ;
171+ bquinary5d ( [ x , y , z , w , u , out ] , shapes , add ) ;
172172 t . deepEqual ( out , expected , 'returns expected value' ) ;
173173
174174 shapes = [
175- [ 1 , 2 ] ,
175+ [ 1 , 2 ] ,
176176 [ 2 ] ,
177177 [ 1 ] ,
178178 [ 2 , 2 ] ,
179179 [ 2 , 1 ] ,
180180 [ 2 , 2 , 2 , 2 , 2 ]
181181 ] ;
182- x = [
183- [ 1.0 , 2.0 ]
184- ] ;
182+ x = [
183+ [ 1.0 , 2.0 ]
184+ ] ;
185185 y = [ 3.0 , 4.0 ] ;
186186 z = [ 5.0 ] ;
187- w = [
188- [ 2.0 , 3.0 ] ,
189- [ 4.0 , 5.0 ]
190- ] ;
191- u = [
192- [ 1.0 ] ,
193- [ 2.0 ]
187+ w = [
188+ [ 2.0 , 3.0 ] ,
189+ [ 4.0 , 5.0 ]
190+ ] ;
191+ u = [
192+ [ 1.0 ] ,
193+ [ 2.0 ]
194194 ] ;
195195 out = zeros5d ( shapes [ 5 ] ) ;
196196
@@ -239,8 +239,8 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
239239 ]
240240 ]
241241 ]
242- ] ;
243- bquinary5d ( [ x , y , z , w , u , out ] , shapes , add ) ;
242+ ] ;
243+ bquinary5d ( [ x , y , z , w , u , out ] , shapes , add ) ;
244244 t . deepEqual ( out , expected , 'returns expected value' ) ;
245245
246246 //Same shapes:
@@ -251,8 +251,8 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
251251 [ 2 , 2 , 2 , 2 , 2 ] ,
252252 [ 2 , 2 , 2 , 2 , 2 ] ,
253253 [ 2 , 2 , 2 , 2 , 2 ]
254- ] ;
255- x = [
254+ ] ;
255+ x = [
256256 [
257257 [
258258 [
@@ -276,7 +276,7 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
276276 ]
277277 ]
278278 ] ;
279- y = [
279+ y = [
280280 [
281281 [
282282 [
@@ -300,7 +300,7 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
300300 ]
301301 ]
302302 ] ;
303- z = [
303+ z = [
304304 [
305305 [
306306 [
@@ -324,7 +324,7 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
324324 ]
325325 ]
326326 ] ;
327- w = [
327+ w = [
328328 [
329329 [
330330 [
@@ -348,7 +348,7 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
348348 ]
349349 ]
350350 ] ;
351- u = [
351+ u = [
352352 [
353353 [
354354 [
@@ -372,9 +372,9 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
372372 ]
373373 ]
374374 ] ;
375- out = zeros5d ( shapes [ 5 ] ) ;
375+ out = zeros5d ( shapes [ 5 ] ) ;
376376
377- expected = [
377+ expected = [
378378 [
379379 [
380380 [
@@ -398,8 +398,8 @@ tape( 'the function applies a provided callback to broadcasted input arrays and
398398 ]
399399 ]
400400 ] ;
401- bquinary5d ( [ x , y , z , w , u , out ] , shapes , add ) ;
402- t . deepEqual ( out , expected , 'returns expected value' ) ;
401+ bquinary5d ( [ x , y , z , w , u , out ] , shapes , add ) ;
402+ t . deepEqual ( out , expected , 'returns expected value' ) ;
403403
404404 t . end ( ) ;
405405} ) ;
@@ -423,19 +423,19 @@ tape( 'the function does not invoke a provided callback if provided an output sh
423423 [ 1 , 1 , 1 , 2 , 2 ] ,
424424 [ 0 , 2 , 2 , 2 , 2 ]
425425 ] ;
426- x = [
427- [
428- [
429- [
430- [ 1.0 , 2.0 ] ,
431- [ 3.0 , 4.0 ]
432- ]
433- ]
434- ]
435- ] ;
436- y = x ;
437- z = x ;
438- w = x ;
426+ x = [
427+ [
428+ [
429+ [
430+ [ 1.0 , 2.0 ] ,
431+ [ 3.0 , 4.0 ]
432+ ]
433+ ]
434+ ]
435+ ] ;
436+ y = x ;
437+ z = x ;
438+ w = x ;
439439 u = x ;
440440 out = zeros5d ( [ 2 , 2 , 2 , 2 , 2 ] ) ;
441441
@@ -479,8 +479,8 @@ tape( 'the function does not invoke a provided callback if provided an output sh
479479 ]
480480 ] ;
481481 y = x ;
482- z = x ;
483- w = x ;
482+ z = x ;
483+ w = x ;
484484 u = x ;
485485 out = zeros5d ( [ 2 , 2 , 2 , 2 , 2 ] ) ;
486486
@@ -524,8 +524,8 @@ tape( 'the function does not invoke a provided callback if provided an output sh
524524 ]
525525 ] ;
526526 y = x ;
527- z = x ;
528- w = x ;
527+ z = x ;
528+ w = x ;
529529 u = x ;
530530 out = zeros5d ( [ 2 , 2 , 2 , 2 , 2 ] ) ;
531531
@@ -569,8 +569,8 @@ tape( 'the function does not invoke a provided callback if provided an output sh
569569 ]
570570 ] ;
571571 y = x ;
572- z = x ;
573- w = x ;
572+ z = x ;
573+ w = x ;
574574 u = x ;
575575 out = zeros5d ( [ 2 , 2 , 2 , 2 , 2 ] ) ;
576576
@@ -596,26 +596,26 @@ tape( 'the function does not invoke a provided callback if provided an output sh
596596 var u ;
597597
598598 shapes = [
599- [ 1 , 1 , 1 , 2 , 2 ] ,
600- [ 1 , 1 , 1 , 2 , 2 ] ,
601- [ 1 , 1 , 1 , 2 , 2 ] ,
602- [ 1 , 1 , 1 , 2 , 2 ] ,
603- [ 1 , 1 , 1 , 2 , 2 ] ,
604- [ 2 , 2 , 2 , 2 , 0 ]
599+ [ 1 , 1 , 1 , 2 , 2 ] ,
600+ [ 1 , 1 , 1 , 2 , 2 ] ,
601+ [ 1 , 1 , 1 , 2 , 2 ] ,
602+ [ 1 , 1 , 1 , 2 , 2 ] ,
603+ [ 1 , 1 , 1 , 2 , 2 ] ,
604+ [ 2 , 2 , 2 , 2 , 0 ]
605+ ] ;
606+ x = [
607+ [
608+ [
609+ [
610+ [ 1.0 , 2.0 ] ,
611+ [ 3.0 , 4.0 ]
612+ ]
613+ ]
614+ ]
605615 ] ;
606- x = [
607- [
608- [
609- [
610- [ 1.0 , 2.0 ] ,
611- [ 3.0 , 4.0 ]
612- ]
613- ]
614- ]
615- ] ;
616- y = x ;
617- z = x ;
618- w = x ;
616+ y = x ;
617+ z = x ;
618+ w = x ;
619619 u = x ;
620620 out = zeros5d ( [ 2 , 2 , 2 , 2 , 2 ] ) ;
621621
0 commit comments