diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js index 9e4880f22..c1e0ce751 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js @@ -49,18 +49,28 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, 2, "returned true on sample[3]"); - result = sample.findIndex(function() { return "string"; }); + result = sample.findIndex(function() { + return "string"; + }); assert.sameValue(result, 0, "ToBoolean(string)"); - result = sample.findIndex(function() { return {}; }); + result = sample.findIndex(function() { + return {}; + }); assert.sameValue(result, 0, "ToBoolean(object)"); - result = sample.findIndex(function() { return Symbol(""); }); + result = sample.findIndex(function() { + return Symbol(""); + }); assert.sameValue(result, 0, "ToBoolean(symbol)"); - result = sample.findIndex(function() { return 1; }); + result = sample.findIndex(function() { + return 1; + }); assert.sameValue(result, 0, "ToBoolean(number)"); - result = sample.findIndex(function() { return -1; }); + result = sample.findIndex(function() { + return -1; + }); assert.sameValue(result, 0, "ToBoolean(negative number)"); }); |