Skip to content

Commit

Permalink
Generate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron authored and jugglinmike committed Oct 1, 2021
1 parent e6b47d7 commit 43c6816
Show file tree
Hide file tree
Showing 34 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion test/language/expressions/array/spread-obj-spread-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
var callCount = 0;

(function(obj) {
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
assert.sameValue(Object.keys(obj).length, 3);
callCount += 1;
}.apply(null, [{...o}]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var vals = o;

result = {...rest} = vals;

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(result, vals);
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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);
Expand Down
2 changes: 1 addition & 1 deletion test/language/expressions/call/spread-obj-spread-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
var callCount = 0;

(function(obj) {
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
assert.sameValue(Object.keys(obj).length, 3);
callCount += 1;
}({...o}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ 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);

assert.sameValue(callCount, 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ 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);

assert.sameValue(callCount, 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ verifyProperty(c, y, {
configurable: true
});

assert(compareArray(x, ["a", "b", "c"]));
assert.compareArray(x, ["a", "b", "c"]);
2 changes: 1 addition & 1 deletion test/language/expressions/class/elements/redeclaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ verifyProperty(c, "y", {
configurable: true
});

assert(compareArray(x, ["a", "b", "c", "d"]));
assert.compareArray(x, ["a", "b", "c", "d"]);
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ 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);

assert.sameValue(callCount, 1);
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ 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);

assert.sameValue(callCount, 1);
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ 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);

assert.sameValue(callCount, 1);
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ 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);

assert.sameValue(callCount, 1);
2 changes: 1 addition & 1 deletion test/language/expressions/new/spread-obj-spread-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
var callCount = 0;

new function(obj) {
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
assert.sameValue(Object.keys(obj).length, 3);
callCount += 1;
}({...o});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ 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);

assert.sameValue(callCount, 1);
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var callCount = 0;

class Test262ParentClass {
constructor(obj) {
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
assert.sameValue(Object.keys(obj).length, 3);
callCount += 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ 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);

assert.sameValue(callCount, 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ 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);

assert.sameValue(callCount, 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ verifyProperty(c, y, {
configurable: true
});

assert(compareArray(x, ["a", "b", "c"]));
assert.compareArray(x, ["a", "b", "c"]);
2 changes: 1 addition & 1 deletion test/language/statements/class/elements/redeclaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ verifyProperty(c, "y", {
configurable: true
});

assert(compareArray(x, ["a", "b", "c", "d"]));
assert.compareArray(x, ["a", "b", "c", "d"]);
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ 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);

assert.sameValue(callCount, 1);
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ 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);

assert.sameValue(callCount, 1);
2 changes: 1 addition & 1 deletion test/language/statements/for-of/dstr/obj-rest-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
var counter = 0;

for ({...rest} of [o]) {
assert(compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]));
assert.compareArray(calls, [1, 'z', 'a', "Symbol(foo)"]);
assert.sameValue(Object.keys(rest).length, 3);
counter += 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ 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);

assert.sameValue(callCount, 1);

0 comments on commit 43c6816

Please sign in to comment.