File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
lib/node_modules/@stdlib/array/base/index-of-same-value/test Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ tape( 'the function returns the first index of an element which equals a provide
167
167
actual = indexOfSameValue ( x , new Complex128 ( 3.0 , 3.0 ) , - 1 ) ;
168
168
t . strictEqual ( actual , 5 , 'returns expected value' ) ;
169
169
170
+ // Non-complex values:
171
+ actual = indexOfSameValue ( x , 1.0 , 0 ) ;
172
+ t . strictEqual ( actual , - 1 , 'returns expected value' ) ;
173
+
170
174
t . end ( ) ;
171
175
} ) ;
172
176
@@ -205,6 +209,10 @@ tape( 'the function returns the first index of an element which equals a provide
205
209
actual = indexOfSameValue ( x , true , - 1 ) ;
206
210
t . strictEqual ( actual , 5 , 'returns expected value' ) ;
207
211
212
+ // Non-boolean values:
213
+ actual = indexOfSameValue ( x , 0 , 0 ) ;
214
+ t . strictEqual ( actual , - 1 , 'returns expected value' ) ;
215
+
208
216
t . end ( ) ;
209
217
} ) ;
210
218
You can’t perform that action at this time.
0 commit comments