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