summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js')
-rw-r--r--test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
index a2d0302c6..1feb9da2f 100644
--- a/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
+++ b/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js
@@ -49,18 +49,28 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(called, 3, "predicate was called three times");
assert.sameValue(result, 62, "returned true on sample[3]");
- result = sample.find(function() { return "string"; });
+ result = sample.find(function() {
+ return "string";
+ });
assert.sameValue(result, 39, "ToBoolean(string)");
- result = sample.find(function() { return {}; });
+ result = sample.find(function() {
+ return {};
+ });
assert.sameValue(result, 39, "ToBoolean(object)");
- result = sample.find(function() { return Symbol(""); });
+ result = sample.find(function() {
+ return Symbol("");
+ });
assert.sameValue(result, 39, "ToBoolean(symbol)");
- result = sample.find(function() { return 1; });
+ result = sample.find(function() {
+ return 1;
+ });
assert.sameValue(result, 39, "ToBoolean(number)");
- result = sample.find(function() { return -1; });
+ result = sample.find(function() {
+ return -1;
+ });
assert.sameValue(result, 39, "ToBoolean(negative number)");
});