package game import ( "path/filepath" "testing" "thehouseoficarus/internal/world" ) // TestCodeReferencedRoomsExist guards the literal room IDs in content_refs.go. // If one of those rooms is moved or deleted, the thief-jail and // estate-directory teleports would silently soft-lock players, so the shipped // data must still contain them. func TestCodeReferencedRoomsExist(t *testing.T) { w := world.New(filepath.Join("..", "..", "data")) for _, id := range []int{jailRoomID, estateNeighborhoodID} { if _, err := w.LoadRoom(id); err != nil { t.Errorf("code-referenced room %d is missing from data/rooms: %v", id, err) } } }