From bbce40b014aa133f0db65499ea8f6c3f3fd41758 Mon Sep 17 00:00:00 2001 From: Andrea Manzi Date: Sat, 31 Oct 2026 23:18:09 +0100 Subject: [PATCH] =?UTF-8?q?Test=20del=20tabellone:=20quanto=20manca=20al?= =?UTF-8?q?=20traguardo=20sta=20nella=20riga=20in=20basso,=20non=20pi?= =?UTF-8?q?=C3=B9=20nel=20pannello?= 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/flipper.test.mjs b/tests/flipper.test.mjs index 5c86e8a..cca54e7 100644 --- a/tests/flipper.test.mjs +++ b/tests/flipper.test.mjs @@ -336,8 +336,7 @@ test('il disegno del flipper non cambia lo stato; il tabellone dice l\'esito giu const x = (r.mouth[0][0] + r.mouth[1][0]) / 2; assert.ok(calls.some(([op, line, tx, ty]) => op === 'fillText' && line === 'RAMPA' && tx === x && ty > r.mouth[0][1]), 'la targhetta indica l\'imbocco dal basso'); } - assert.ok(calls.some(([op, line]) => op === 'fillText' && line === 'OBIETTIVO 60.000')); - assert.ok(calls.some(([op, line]) => op === 'fillText' && line === 'MANCANO 60.000')); + assert.ok(calls.some(([op, line]) => op === 'fillText' && line === 'MANCANO 60.000'), 'quanto manca al traguardo, nella riga in basso'); assert.ok(existsSync(new URL('../' + story.closeups.flipper.backglass, import.meta.url)), 'il fondale del tabellone esiste'); const glass = {}; drawFlipper(ctx, c, story.closeups.flipper, bg, glass); assert.ok(calls.some(([op, img, x, y, w, h]) => op === 'drawImage' && img === glass && w === 200 && h === 360), 'il fondale sul fianco'); m.launch(c, 0.8); run(c, 1); calls.length = 0; draw();