mirror of
https://github.com/tc39/test262.git
synced 2025-05-31 04:00:34 +02:00
chore: update src/**/*.case to use assert.compareArray wherever applicable
This commit is contained in:
parent
56e537b916
commit
e6b47d7738
@ -27,7 +27,7 @@ item.then(({ done, value }) => {
|
|||||||
item = iter.next(value);
|
item = iter.next(value);
|
||||||
|
|
||||||
item.then(({ done, value }) => {
|
item.then(({ done, value }) => {
|
||||||
assert(compareArray(value, arr));
|
assert.compareArray(value, arr);
|
||||||
assert.sameValue(done, false);
|
assert.sameValue(done, false);
|
||||||
}).then($DONE, $DONE);
|
}).then($DONE, $DONE);
|
||||||
}).catch($DONE);
|
}).catch($DONE);
|
||||||
|
@ -50,4 +50,4 @@ verifyProperty(c, y, {
|
|||||||
configurable: true
|
configurable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
assert(compareArray(x, ["a", "b", "c"]));
|
assert.compareArray(x, ["a", "b", "c"]);
|
||||||
|
@ -50,4 +50,4 @@ verifyProperty(c, "y", {
|
|||||||
configurable: true
|
configurable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
assert(compareArray(x, ["a", "b", "c", "d"]));
|
assert.compareArray(x, ["a", "b", "c", "d"]);
|
||||||
|
@ -19,5 +19,5 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
|
|||||||
//- vals
|
//- vals
|
||||||
o
|
o
|
||||||
//- body
|
//- body
|
||||||
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
|
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
|
||||||
assert.sameValue(Object.keys(rest).length, 3);
|
assert.sameValue(Object.keys(rest).length, 3);
|
||||||
|
@ -23,5 +23,5 @@ iter.next(false);
|
|||||||
item = iter.next(['a', 'b', 'c']);
|
item = iter.next(['a', 'b', 'c']);
|
||||||
item = iter.next(item.value);
|
item = iter.next(item.value);
|
||||||
|
|
||||||
assert(compareArray(item.value, arr));
|
assert.compareArray(item.value, arr);
|
||||||
assert.sameValue(item.done, false);
|
assert.sameValue(item.done, false);
|
||||||
|
@ -29,5 +29,5 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
|
|||||||
//- params
|
//- params
|
||||||
obj
|
obj
|
||||||
//- body
|
//- body
|
||||||
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
|
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
|
||||||
assert.sameValue(Object.keys(obj).length, 3);
|
assert.sameValue(Object.keys(obj).length, 3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user