summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js')
-rw-r--r--test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
index 073201a27..16afbdf35 100644
--- a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
+++ b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
@@ -38,17 +38,27 @@ result = arr.find(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, 'Bike');
-result = arr.find(function(val) { return 'string'; });
+result = arr.find(function(val) {
+ return 'string';
+});
assert.sameValue(result, 'Shoes', 'coerced string');
-result = arr.find(function(val) { return {}; });
+result = arr.find(function(val) {
+ return {};
+});
assert.sameValue(result, 'Shoes', 'coerced object');
-result = arr.find(function(val) { return Symbol(''); });
+result = arr.find(function(val) {
+ return Symbol('');
+});
assert.sameValue(result, 'Shoes', 'coerced Symbol');
-result = arr.find(function(val) { return 1; });
+result = arr.find(function(val) {
+ return 1;
+});
assert.sameValue(result, 'Shoes', 'coerced number');
-result = arr.find(function(val) { return -1; });
+result = arr.find(function(val) {
+ return -1;
+});
assert.sameValue(result, 'Shoes', 'coerced negative number');