@@ -141,6 +141,9 @@ tape( 'the function returns the first index of an element which equals a provide
141
141
actual = indexOfSameValue ( x , new Complex128 ( 3.0 , 3.0 ) , 0 ) ;
142
142
t . strictEqual ( actual , 4 , 'returns expected value' ) ;
143
143
144
+ actual = indexOfSameValue ( x , new Complex128 ( 2.0 , 2.0 ) , 4 ) ;
145
+ t . strictEqual ( actual , - 1 , 'returns expected value' ) ;
146
+
144
147
// Nonnegative starting index...
145
148
actual = indexOfSameValue ( x , new Complex128 ( 1.0 , 1.0 ) , 1 ) ;
146
149
t . strictEqual ( actual , 1 , 'returns expected value' ) ;
@@ -186,6 +189,9 @@ tape( 'the function returns the first index of an element which equals a provide
186
189
actual = indexOfSameValue ( x , false , 0 ) ;
187
190
t . strictEqual ( actual , 2 , 'returns expected value' ) ;
188
191
192
+ actual = indexOfSameValue ( x , false , 4 ) ;
193
+ t . strictEqual ( actual , - 1 , 'returns expected value' ) ;
194
+
189
195
// Nonnegative starting index...
190
196
actual = indexOfSameValue ( x , true , 1 ) ;
191
197
t . strictEqual ( actual , 1 , 'returns expected value' ) ;
0 commit comments