Generate tests

This commit is contained in:
rwaldron 2021-10-01 11:26:44 -04:00 committed by jugglinmike
parent e6b47d7738
commit 43c68163c0
34 changed files with 34 additions and 34 deletions

View File

@ -42,7 +42,7 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
var callCount = 0; var callCount = 0;
(function(obj) { (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); assert.sameValue(Object.keys(obj).length, 3);
callCount += 1; callCount += 1;
}.apply(null, [{...o}])); }.apply(null, [{...o}]));

View File

@ -27,7 +27,7 @@ var vals = o;
result = {...rest} = vals; 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(Object.keys(rest).length, 3);
assert.sameValue(result, vals); assert.sameValue(result, vals);

View File

@ -41,7 +41,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);

View File

@ -41,7 +41,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);

View File

@ -40,7 +40,7 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
var callCount = 0; var callCount = 0;
(function(obj) { (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); assert.sameValue(Object.keys(obj).length, 3);
callCount += 1; callCount += 1;
}({...o})); }({...o}));

View File

@ -48,7 +48,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);

View File

@ -48,7 +48,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);

View File

@ -53,7 +53,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);

View File

@ -56,7 +56,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);

View File

@ -49,7 +49,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -52,7 +52,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -52,4 +52,4 @@ verifyProperty(c, y, {
configurable: true configurable: true
}); });
assert(compareArray(x, ["a", "b", "c"])); assert.compareArray(x, ["a", "b", "c"]);

View File

@ -52,4 +52,4 @@ verifyProperty(c, "y", {
configurable: true configurable: true
}); });
assert(compareArray(x, ["a", "b", "c", "d"])); assert.compareArray(x, ["a", "b", "c", "d"]);

View File

@ -44,7 +44,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -44,7 +44,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -36,7 +36,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -36,7 +36,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -39,7 +39,7 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
var callCount = 0; var callCount = 0;
new function(obj) { 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); assert.sameValue(Object.keys(obj).length, 3);
callCount += 1; callCount += 1;
}({...o}); }({...o});

View File

@ -41,7 +41,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);

View File

@ -38,7 +38,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -38,7 +38,7 @@ var callCount = 0;
class Test262ParentClass { class Test262ParentClass {
constructor(obj) { 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); assert.sameValue(Object.keys(obj).length, 3);
callCount += 1; callCount += 1;
} }

View File

@ -41,7 +41,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);

View File

@ -48,7 +48,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);

View File

@ -48,7 +48,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);

View File

@ -53,7 +53,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);

View File

@ -56,7 +56,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);

View File

@ -49,7 +49,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -52,7 +52,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -52,4 +52,4 @@ verifyProperty(c, y, {
configurable: true configurable: true
}); });
assert(compareArray(x, ["a", "b", "c"])); assert.compareArray(x, ["a", "b", "c"]);

View File

@ -52,4 +52,4 @@ verifyProperty(c, "y", {
configurable: true configurable: true
}); });
assert(compareArray(x, ["a", "b", "c", "d"])); assert.compareArray(x, ["a", "b", "c", "d"]);

View File

@ -44,7 +44,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -44,7 +44,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);

View File

@ -34,7 +34,7 @@ Object.defineProperty(o, Symbol('foo'), { get: () => { calls.push("Symbol(foo)")
var counter = 0; var counter = 0;
for ({...rest} of [o]) { 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); assert.sameValue(Object.keys(rest).length, 3);
counter += 1; counter += 1;
} }

View File

@ -36,7 +36,7 @@ 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);
assert.sameValue(callCount, 1); assert.sameValue(callCount, 1);