more test cleanup

This commit is contained in:
2026-07-25 23:20:52 -05:00
parent c3be2329c0
commit ba8c72d5a5
12 changed files with 117 additions and 164 deletions
-3
View File
@@ -203,6 +203,3 @@ fn blocked_reports_solid_and_clear() {
game.run_init();
assert_eq!(glyph(&game, id).tile, 7);
}
+1 -1
View File
@@ -1,6 +1,6 @@
mod actions;
// TODO(migration): map_file is not yet ported — it is blocked on the map files
// themselves still being pre-BoardSpec (see todo.md #5).
// themselves still being pre-BoardSpec (see todo.md #1).
mod game_portals;
// mod map_file;
mod movement;
+5 -4
View File
@@ -92,8 +92,9 @@ fn missing_hooks_and_no_script_are_noops() {
#[test]
fn compile_and_unknown_script_errors_are_logged() {
// A reference to a script name that isn't in the pool. See todo.md #5: this is
// currently a silent `continue` in ScriptHost::new, so nothing is logged.
// A reference to a script name that isn't in the world pool. `ScriptKey::None`
// (an object with no script at all) must stay silent; only a named script that
// can't be resolved is an error.
let (board, scripts, _) = board_with_object(Some("ghost"), &[]);
let game = GameState::with_scripts(board, scripts);
assert!(
@@ -149,7 +150,7 @@ fn start_map_greeter_runs_init() {
// Keep the failure message short: a TomlError's Display embeds the whole file.
let mut world = crate::world::load(path).unwrap_or_else(|e| {
let first = e.to_string().lines().next().unwrap_or_default().to_string();
panic!("load start.toml failed (see todo.md #5, maps are still pre-BoardSpec): {first}")
panic!("load start.toml failed (see todo.md #1, maps are still pre-BoardSpec): {first}")
});
// Pin to the "start" board regardless of the world's current default entry point.
world.start = "start".to_string();
@@ -523,7 +524,7 @@ fn a_send_cycle_defers_instead_of_recursing() {
// ── enter hook ──────────────────────────────────────────────────────────────
// `enter(me, dir)` fires on a **sensor** when the player steps onto its cell, with
// `dir` the side the player came from. This is the only remaining enter trigger:
// object movement, pushes, teleports and shifts dispatch no hooks (see todo.md).
// object movement, pushes, teleports and shifts dispatch no hooks at all.
#[test]
fn player_walking_onto_a_sensor_fires_enter_from_the_travel_side() {