diff --git a/src/__tests__/__snapshots__/dynamic-repeat.test.ts.snap b/src/__tests__/__snapshots__/dynamic-repeat.test.ts.snap index 25cc664..1048760 100644 --- a/src/__tests__/__snapshots__/dynamic-repeat.test.ts.snap +++ b/src/__tests__/__snapshots__/dynamic-repeat.test.ts.snap @@ -61,11 +61,10 @@ export default class Tests extends Sprite { *whenGreenFlagClicked() { this.x = 0; for (let i = 0; i < 2; i++) { - this.x += 1; - yield; - } - for (let i2 = 0, times = 2 + 2 * 0.5; i2 < times; i2++) { - this.x += 1; + for (let i2 = 0, times = 2 + 2; i2 < times; i2++) { + this.x += 1; + yield; + } yield; } for (let i3 = 0, times2 = this.x + 4; i3 < times2; i3++) { diff --git a/src/__tests__/dynamic-repeat.sb3 b/src/__tests__/dynamic-repeat.sb3 index c9844ac..117cb50 100644 Binary files a/src/__tests__/dynamic-repeat.sb3 and b/src/__tests__/dynamic-repeat.sb3 differ