From 721b6de93087fdaa2b2d7bbe7936a169e22bd4cc Mon Sep 17 00:00:00 2001 From: Andrea Manzi Date: Sat, 31 Oct 2026 21:47:50 +0100 Subject: [PATCH] =?UTF-8?q?Test=20della=20combo:=20la=20pallina=20persa=20?= =?UTF-8?q?=C3=A8=20in=20gioco,=20non=20sulla=20molla?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01GiECd9RWGMKV7n3K1mdy8T --- tests/flipper.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/flipper.test.mjs b/tests/flipper.test.mjs index 26958c5..ecc0974 100644 --- a/tests/flipper.test.mjs +++ b/tests/flipper.test.mjs @@ -186,7 +186,7 @@ test('i ponti: imboccati forte si sale, si passa sopra la tavola e si scende nel // La combo scade dopo dodici secondi, e si azzera perdendo la pallina. const g = m.newFlipper(16, { level: 'bona' }); m.launch(g, 0.9); g.lastRamp = { id: 'sinistra', at: g.sim }; put(g, { x: 320, y: 200, vx: 0, vy: 0 }); run(g, 13); assert.equal(g.lastRamp, null, 'scaduta'); - g.lastRamp = { id: 'sinistra', at: g.sim }; g.saveUntil = 0; put(g, { x: 320, y: 342, vx: 0, vy: 300 }); run(g, 1); + g.lastRamp = { id: 'sinistra', at: g.sim }; g.saveUntil = 0; put(g, { x: 320, y: 342, vx: 0, vy: 300, waiting: false }); run(g, 1); assert.equal(g.balls, 2); assert.equal(g.lastRamp, null, 'azzerata con la pallina persa'); });