From 726997d799edc388cd448e978d5bb0755aaa551c Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 7 Jul 2026 16:46:32 -0400 Subject: feat: bitpacked and base64 encoded VisitedRooms in player YAML to keep the file human readable --- internal/game/exit_migrate_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/game/exit_migrate_test.go') diff --git a/internal/game/exit_migrate_test.go b/internal/game/exit_migrate_test.go index 05edea5..f86b85b 100644 --- a/internal/game/exit_migrate_test.go +++ b/internal/game/exit_migrate_test.go @@ -21,7 +21,7 @@ func TestRewritePlayerRoomIDsRename(t *testing.T) { 30: {Char: "Y"}, }, } - p.Stats.RoomsVisited = map[int]bool{10: true, 40: true} + p.Stats.RoomsVisited = player.NewRoomSetFrom(10, 40) idMap := map[int]int{10: 100, 20: 200} if !rewritePlayerRoomIDs(p, idMap) { @@ -53,13 +53,13 @@ func TestRewritePlayerRoomIDsRename(t *testing.T) { if _, ok := p.MapSymbols[10]; ok { t.Error("MapSymbols should not still have key 10") } - if !p.Stats.RoomsVisited[100] { + if !p.Stats.RoomsVisited.Has(100) { t.Error("RoomsVisited missing key 100") } - if !p.Stats.RoomsVisited[40] { + if !p.Stats.RoomsVisited.Has(40) { t.Error("RoomsVisited missing unchanged key 40") } - if p.Stats.RoomsVisited[10] { + if p.Stats.RoomsVisited.Has(10) { t.Error("RoomsVisited should not still have key 10") } } -- cgit v1.2.3