You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.set_nd.js
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -73,22 +73,22 @@ tape( 'a FancyArray constructor returns an instance which has a `set` method whi
73
73
}
74
74
t.end();
75
75
76
-
functionbadValue(value,dim){
77
-
returnfunctionbadValue(){
78
-
varargs=newArray(shape.length+1);
79
-
vari;
80
-
81
-
for(i=0;i<shape.length;i++){
82
-
if(i===dim){
83
-
args[i]=value;
84
-
}else{
85
-
args[i]=0;
86
-
}
76
+
functionbadValue(value,dim){
77
+
returnfunctionbadValue(){
78
+
varargs=[];
79
+
vari;
80
+
81
+
for(i=0;i<shape.length;i++){
82
+
if(i===dim){
83
+
args.push(value);
84
+
}else{
85
+
args.push(0);
87
86
}
88
-
args[i]=10.0;
89
-
arr.set.apply(arr,args);
90
-
};
91
-
}
87
+
}
88
+
args.push(10.0);
89
+
arr.set.apply(arr,args);
90
+
};
91
+
}
92
92
});
93
93
94
94
tape('a FancyArray constructor returns an instance which has a `set` method for setting an array element using subscripts (>4d; row-major)',functiontest(t){
0 commit comments