tests: the toy rollback lands in a world that stands still past a blocked window

This commit is contained in:
acamilo 2026-09-23 14:53:33 +00:00
parent bd57b73b72
commit 625bcb6403
2 changed files with 9 additions and 6 deletions

View file

@ -7,7 +7,7 @@
"macro_next"
],
"records": 263,
"digest": "bae9357bb565266fdefba66004f792aa52a44e283fa73853e0c4f3de50790f86",
"digest": "5139fb8a99c6503ac2315f5a5ed754a6054e6eb8068acdd2b649931ccd40a02f",
"rows": [
"0 initialize b0 t2500 bt2500 m-- - p0 d676a54ce95aef0e",
"1 frame b1 t16 bt2516 m61 - p0 42a0dfdbf7fe8f55",
@ -201,7 +201,7 @@
"189 frame b188 t17 bt5647 m04 macro_talk p182 7d641ad4221b0747",
"190 frame b189 t17 bt5664 m04 macro_talk p165 8856a5a3a7ea0bd0",
"191 frame b190 t17 bt5681 m04 macro_talk p148 8729465d0c93729d",
"192 restore b190 t0 bt5681 m-- - p- 3750266f1bed5a99 state",
"192 restore b190 t0 bt5681 m-- - p- 8f949318d4bb63eb state",
"193 frame b191 t16 bt5697 m04 macro_talk p132 45792c108b658d08",
"194 frame b192 t17 bt5714 m04 macro_talk p115 2e86ee32ef98edcb",
"195 frame b193 t17 bt5731 m04 macro_talk p98 70133bde0d47d8ac",
@ -209,7 +209,7 @@
"197 frame b195 t16 bt5764 m04 macro_talk p65 760f253d0b98cffc",
"198 frame b196 t17 bt5781 m04 macro_talk p48 dc2fcd053a28f245",
"199 frame b197 t17 bt5798 m04 macro_talk p31 1838d2ac9c5a10b1",
"200 frame b198 t17 bt5815 m04 macro_talk p14 723b794e9dfb5c47 state",
"200 frame b198 t17 bt5815 m04 macro_talk p14 c92a4879ba2b7755 state",
"201 frame b199 t16 bt5831 m04 macro_talk p0 51ddb25342248c72",
"202 frame b200 t17 bt5848 m04 macro_talk p0 3f4b549fcfd40302",
"203 frame b201 t17 bt5865 m04 - p0 1ab673841a089025",
@ -249,7 +249,7 @@
"237 frame b235 t17 bt6434 m02 macro_menu p0 5dde31f090f929dd",
"238 frame b236 t17 bt6451 m32 macro_menu p0 10016921e0075703",
"239 frame b237 t17 bt6468 m32 macro_menu p0 3c71e55a03bcff56",
"240 frame b238 t16 bt6484 m32 macro_menu p120 65651f499c0f50a0 state",
"240 frame b238 t16 bt6484 m32 macro_menu p120 94bd075f6fa74a82 state",
"241 frame b239 t17 bt6501 m32 macro_menu p103 d2d653c50d3d61ab",
"242 frame b240 t17 bt6518 m72 macro_menu p86 e0eb01fdec42ae6b",
"243 frame b241 t16 bt6534 m72 macro_menu p70 819891d76b93ffb3",
@ -271,6 +271,6 @@
"259 frame b257 t16 bt6802 m02 macro_menu p87 476decc6c7fdb03c",
"260 frame b258 t17 bt6819 m02 macro_menu p70 fb61281ced140083",
"261 frame b259 t17 bt6836 m02 macro_menu p53 eb14e0e8da15899c",
"262 frame b260 t17 bt6853 m02 macro_menu p36 92132643c2593be7 state"
"262 frame b260 t17 bt6853 m02 macro_menu p36 14a5132bd706cea1 state"
]
}

View file

@ -291,7 +291,8 @@ fn context(boot: bool, bound: &[&str], location: Option<(u32, u32, u32)>) -> Rea
/// The macros-mode toy scenario: boot and play, a still location long enough for the blocked
/// rule, a battle (no location), sugar overlapping a pulse, reward events on a schedule with a
/// zero-value one, a rollback, a restore into a fresh worker and play after both.
/// zero-value one, a rollback into a world that then stands still past a blocked window, a
/// restore into a fresh worker and play after both.
pub fn toy_macros_script(frames: usize) -> LegacyScript {
let channels: Vec<String> = toy::MACRO_CHANNELS
.iter()
@ -310,6 +311,8 @@ pub fn toy_macros_script(frames: usize) -> LegacyScript {
0..20 => None,
20..90 => Some((1, 5, 5)),
90..96 => None,
// The rollback's restored world, standing still past one blocked window.
121..185 => Some((2, 3, 4)),
_ => Some((1, 5 + (k / 30) as u32, 5)),
}
};