feat(client): add LocalBridge framing tests and diagonal fixtures
12 new tests covering framing roundtrips, cross-layer Protocol+framing integration, and diagonal wire mapping. 4 new diagonal movement fixtures generated from Rust for D-030 Layer 1 cross-language verification. 33/33 tests pass. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -61,4 +61,15 @@ fn generate_msgpack_fixtures() {
|
||||
],
|
||||
};
|
||||
write_fixture("snapshot_multi_entity", &rmp_serde::to_vec_named(&snapshot_multi).unwrap());
|
||||
|
||||
// Diagonal movement fixtures (clockwise: NE, SE, SW, NW)
|
||||
for (name, action) in [
|
||||
("input_move_northeast", PlayerAction::MoveNortheast),
|
||||
("input_move_southeast", PlayerAction::MoveSoutheast),
|
||||
("input_move_southwest", PlayerAction::MoveSouthwest),
|
||||
("input_move_northwest", PlayerAction::MoveNorthwest),
|
||||
] {
|
||||
let input = PlayerInput { tick: 100, action };
|
||||
write_fixture(name, &rmp_serde::to_vec_named(&input).unwrap());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user