mirror of https://github.com/tc39/test262.git
Fix minor typo
This commit is contained in:
parent
f354da8ba4
commit
642a180e62
|
@ -50,7 +50,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
|
||||||
sample = new TA(arr);
|
sample = new TA(arr);
|
||||||
result = sample.findLast(function(val, i) {
|
result = sample.findLast(function(val, i) {
|
||||||
if ( i <= 2 ) {
|
if ( i < 2 ) {
|
||||||
sample[2] = 7n;
|
sample[2] = 7n;
|
||||||
}
|
}
|
||||||
return val === 7n;
|
return val === 7n;
|
||||||
|
|
|
@ -25,7 +25,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
called++;
|
called++;
|
||||||
return true;
|
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");
|
assert.sameValue(called, 1, "predicate was called once");
|
||||||
|
|
||||||
called = 0;
|
called = 0;
|
||||||
|
@ -33,8 +33,8 @@ testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
called++;
|
called++;
|
||||||
return val === 62n;
|
return val === 62n;
|
||||||
});
|
});
|
||||||
assert.sameValue(called, 1, "predicate was called three times");
|
assert.sameValue(called, 1, "predicate was called once");
|
||||||
assert.sameValue(result, 62n, "returned true on sample[3]");
|
assert.sameValue(result, 62n, "returned true on sample[2]");
|
||||||
|
|
||||||
result = sample.findLast(function() { return "string"; });
|
result = sample.findLast(function() { return "string"; });
|
||||||
assert.sameValue(result, 62n, "ToBoolean(string)");
|
assert.sameValue(result, 62n, "ToBoolean(string)");
|
||||||
|
|
|
@ -50,7 +50,7 @@ testWithTypedArrayConstructors(function(TA) {
|
||||||
|
|
||||||
sample = new TA(arr);
|
sample = new TA(arr);
|
||||||
result = sample.findLast(function(val, i) {
|
result = sample.findLast(function(val, i) {
|
||||||
if ( i <= 2 ) {
|
if ( i < 2 ) {
|
||||||
sample[2] = 7;
|
sample[2] = 7;
|
||||||
}
|
}
|
||||||
return val === 7;
|
return val === 7;
|
||||||
|
|
|
@ -25,7 +25,7 @@ testWithTypedArrayConstructors(function(TA) {
|
||||||
called++;
|
called++;
|
||||||
return true;
|
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");
|
assert.sameValue(called, 1, "predicate was called once");
|
||||||
|
|
||||||
called = 0;
|
called = 0;
|
||||||
|
@ -33,8 +33,8 @@ testWithTypedArrayConstructors(function(TA) {
|
||||||
called++;
|
called++;
|
||||||
return val === 62;
|
return val === 62;
|
||||||
});
|
});
|
||||||
assert.sameValue(called, 1, "predicate was called three times");
|
assert.sameValue(called, 1, "predicate was called once");
|
||||||
assert.sameValue(result, 62, "returned true on sample[3]");
|
assert.sameValue(result, 62, "returned true on sample[2]");
|
||||||
|
|
||||||
result = sample.findLast(function() { return "string"; });
|
result = sample.findLast(function() { return "string"; });
|
||||||
assert.sameValue(result, 62, "ToBoolean(string)");
|
assert.sameValue(result, 62, "ToBoolean(string)");
|
||||||
|
|
|
@ -49,7 +49,7 @@ testWithTypedArrayConstructors(function(TA) {
|
||||||
|
|
||||||
sample = new TA(arr);
|
sample = new TA(arr);
|
||||||
result = sample.findLastIndex(function(val, i) {
|
result = sample.findLastIndex(function(val, i) {
|
||||||
if ( i <= 2) {
|
if ( i < 2) {
|
||||||
sample[2] = 7;
|
sample[2] = 7;
|
||||||
}
|
}
|
||||||
return val === 7;
|
return val === 7;
|
||||||
|
|
Loading…
Reference in New Issue