more refactor

This commit is contained in:
2026-06-05 01:09:50 -05:00
parent 6cd34ebb4e
commit 8f2cca2907
5 changed files with 35 additions and 36 deletions
+5 -5
View File
@@ -663,7 +663,7 @@ mod tests {
3,
(3, 1),
vec![scripted_object(2, 1, "r")],
&[("r", "fn init() { log(board.player_x.to_string()); }")],
&[("r", "fn init() { log(Board.player_x.to_string()); }")],
);
let mut game = GameState::new(board);
game.run_init();
@@ -678,7 +678,7 @@ mod tests {
3,
(0, 0),
vec![scripted_object(2, 1, "m")],
&[("m", "fn init() { move(east); }")],
&[("m", "fn init() { move(East); }")],
);
let mut game = GameState::new(board);
game.run_init();
@@ -695,7 +695,7 @@ mod tests {
3,
(0, 0),
vec![scripted_object(0, 1, "m")],
&[("m", "fn init() { move(west); }")],
&[("m", "fn init() { move(West); }")],
);
let mut game = GameState::new(board);
game.run_init();
@@ -748,8 +748,8 @@ mod tests {
(0, 0),
vec![scripted_object(0, 1, "e"), scripted_object(4, 1, "w")],
&[
("e", "fn init() { move(east); }"),
("w", "fn init() { move(west); }"),
("e", "fn init() { move(East); }"),
("w", "fn init() { move(West); }"),
],
);
let mut game = GameState::new(board);