Other cases of yield * with iterable values

This commit is contained in:
Leo Balter 2018-08-21 12:43:50 -04:00
parent dacc69a066
commit 0cc5e356c1
No known key found for this signature in database
GPG Key ID: 2C75F319D398E36B
3 changed files with 24 additions and 24 deletions

View File

@ -60,22 +60,22 @@ features: [class-static-methods-private]
//- fields
static async * #$(value) {
yield await value;
yield * await value;
}
static async * #_(value) {
yield await value;
yield * await value;
}
static async * #o(value) {
yield await value;
yield * await value;
}
static async * #℘(value) {
yield await value;
yield * await value;
}
static async * #ZW__NJ(value) {
yield await value;
yield * await value;
}
static async * #ZW__J(value) {
yield await value;
yield * await value;
}
//- privateinspectionfunctions
static get $() {
@ -99,12 +99,12 @@ static get ZW__J() { // DO NOT CHANGE THE NAME OF THIS FIELD
//- assertions
Promise.all([
C.$(1).next(),
C._(1).next(),
C.o(1).next(),
C.℘(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
C.ZW__NJ(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
C.ZW__J(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
C.$([1]).next(),
C._([1]).next(),
C.o([1]).next(),
C.℘([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
C.ZW__NJ([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
C.ZW__J([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
]).then(results => {
assert.sameValue(results[0].value, 1);

View File

@ -97,9 +97,9 @@ static get ZW__J() { // DO NOT CHANGE THE NAME OF THIS FIELD
}
//- assertions
assert.sameValue(C.$(1).next().value, 1);
assert.sameValue(C._(1).next().value, 1);
assert.sameValue(C.o(1).next().value, 1);
assert.sameValue(C.℘(1).next().value, 1);
assert.sameValue(C.ZW__NJ(1).next().value, 1);
assert.sameValue(C.ZW__J(1).next().value, 1);
assert.sameValue(C.$([1]).next().value, 1);
assert.sameValue(C._([1]).next().value, 1);
assert.sameValue(C.o([1]).next().value, 1);
assert.sameValue(C.℘([1]).next().value, 1);
assert.sameValue(C.ZW__NJ([1]).next().value, 1);
assert.sameValue(C.ZW__J([1]).next().value, 1);

View File

@ -97,10 +97,10 @@ static get ZW_\u200D_J() {
}
//- assertions
assert.sameValue(C.$(1).next().value, 1);
assert.sameValue(C._(1).next().value, 1);
assert.sameValue(C.\u{6F}(1).next().value, 1);
assert.sameValue(C.\u2118(1).next().value, 1);
assert.sameValue(C.ZW_\u200C_NJ(1).next().value, 1);
assert.sameValue(C.ZW_\u200D_J(1).next().value, 1);
assert.sameValue(C.$([1]).next().value, 1);
assert.sameValue(C._([1]).next().value, 1);
assert.sameValue(C.\u{6F}([1]).next().value, 1);
assert.sameValue(C.\u2118([1]).next().value, 1);
assert.sameValue(C.ZW_\u200C_NJ([1]).next().value, 1);
assert.sameValue(C.ZW_\u200D_J([1]).next().value, 1);