mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Fix minor typo
This commit is contained in:
parent
f354da8ba4
commit
642a180e62
test/built-ins/TypedArray/prototype
@ -50,7 +50,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
|
||||
|
||||
sample = new TA(arr);
|
||||
result = sample.findLast(function(val, i) {
|
||||
if ( i <= 2 ) {
|
||||
if ( i < 2 ) {
|
||||
sample[2] = 7n;
|
||||
}
|
||||
return val === 7n;
|
||||
|
6
test/built-ins/TypedArray/prototype/findLast/BigInt/return-found-value-predicate-result-is-true.js
vendored
6
test/built-ins/TypedArray/prototype/findLast/BigInt/return-found-value-predicate-result-is-true.js
vendored
@ -25,7 +25,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
|
||||
called++;
|
||||
return true;
|
||||
});
|
||||
assert.sameValue(result, 62n, "returned true on sample[0]");
|
||||
assert.sameValue(result, 62n, "returned true on sample[2]");
|
||||
assert.sameValue(called, 1, "predicate was called once");
|
||||
|
||||
called = 0;
|
||||
@ -33,8 +33,8 @@ testWithBigIntTypedArrayConstructors(function(TA) {
|
||||
called++;
|
||||
return val === 62n;
|
||||
});
|
||||
assert.sameValue(called, 1, "predicate was called three times");
|
||||
assert.sameValue(result, 62n, "returned true on sample[3]");
|
||||
assert.sameValue(called, 1, "predicate was called once");
|
||||
assert.sameValue(result, 62n, "returned true on sample[2]");
|
||||
|
||||
result = sample.findLast(function() { return "string"; });
|
||||
assert.sameValue(result, 62n, "ToBoolean(string)");
|
||||
|
@ -50,7 +50,7 @@ testWithTypedArrayConstructors(function(TA) {
|
||||
|
||||
sample = new TA(arr);
|
||||
result = sample.findLast(function(val, i) {
|
||||
if ( i <= 2 ) {
|
||||
if ( i < 2 ) {
|
||||
sample[2] = 7;
|
||||
}
|
||||
return val === 7;
|
||||
|
6
test/built-ins/TypedArray/prototype/findLast/return-found-value-predicate-result-is-true.js
vendored
6
test/built-ins/TypedArray/prototype/findLast/return-found-value-predicate-result-is-true.js
vendored
@ -25,7 +25,7 @@ testWithTypedArrayConstructors(function(TA) {
|
||||
called++;
|
||||
return true;
|
||||
});
|
||||
assert.sameValue(result, 62, "returned true on sample[0]");
|
||||
assert.sameValue(result, 62, "returned true on sample[2]");
|
||||
assert.sameValue(called, 1, "predicate was called once");
|
||||
|
||||
called = 0;
|
||||
@ -33,8 +33,8 @@ testWithTypedArrayConstructors(function(TA) {
|
||||
called++;
|
||||
return val === 62;
|
||||
});
|
||||
assert.sameValue(called, 1, "predicate was called three times");
|
||||
assert.sameValue(result, 62, "returned true on sample[3]");
|
||||
assert.sameValue(called, 1, "predicate was called once");
|
||||
assert.sameValue(result, 62, "returned true on sample[2]");
|
||||
|
||||
result = sample.findLast(function() { return "string"; });
|
||||
assert.sameValue(result, 62, "ToBoolean(string)");
|
||||
|
@ -49,7 +49,7 @@ testWithTypedArrayConstructors(function(TA) {
|
||||
|
||||
sample = new TA(arr);
|
||||
result = sample.findLastIndex(function(val, i) {
|
||||
if ( i <= 2) {
|
||||
if ( i < 2) {
|
||||
sample[2] = 7;
|
||||
}
|
||||
return val === 7;
|
||||
|
Loading…
x
Reference in New Issue
Block a user