The live dt in the graph is not always three decimals: the check in module 18 that reads the value an output last carried asked for /^0\.\d{3} dt$/, but formatNumber trims trailing zeros, so a frame of exactly 50 ms reads as "0.05" - that is why the suite for 5ba796a was red in CI with this single FAIL while the same check is green on this machine, where the frame time never lands on a round number; the check now asks for any number of decimals, which is what it was ever about, and the reason stands as a comment next to it (#119)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4f55f85ad4
commit
defd4a86d2
1 file changed
+4
-1
@@ -169,9 +169,12 @@ export async function pause(t) {
|
||||
move: await outputs('p-move'),
|
||||
};
|
||||
check(
|
||||
// Not a fixed number of decimals: the live value is formatted with trailing zeros trimmed, and
|
||||
// a slow frame of exactly 50 ms reads as "0.05", not "0.050". CI failed on exactly that
|
||||
// (task 175), while the frame time here always lands on three digits.
|
||||
'while playing, each output shows the value it last carried in front of its name',
|
||||
live.owner[0] === 'Pause box object' &&
|
||||
/^0\.\d{3} {2}dt$/.test(live.update[1]) &&
|
||||
/^0\.\d+ {2}dt$/.test(live.update[1]) &&
|
||||
live.move[1] === 'false blocked x',
|
||||
JSON.stringify(live),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user