From b6fdde0aa6fcefd735e7c550aaa7fca879023f1c Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 15 Jun 2026 00:03:55 -0400 Subject: feat: unicode option, fixed up options and tables --- internal/game/map_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/game/map_test.go') diff --git a/internal/game/map_test.go b/internal/game/map_test.go index 3453117..8c82f4a 100644 --- a/internal/game/map_test.go +++ b/internal/game/map_test.go @@ -12,6 +12,8 @@ func TestBuildTinyMap(t *testing.T) { World: world.New("../../data"), } + mg := mapGlyphsForPlayer(true) + tests := []struct { name string roomID int @@ -49,7 +51,7 @@ func TestBuildTinyMap(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - lines := buildTinyMap(g, tt.roomID) + lines := buildTinyMap(g, tt.roomID, mg) if len(lines) != 7 { t.Fatalf("expected 7 lines, got %d", len(lines)) } @@ -97,6 +99,8 @@ func TestBuildFullMap(t *testing.T) { World: world.New("../../data"), } + mg := mapGlyphsForPlayer(true) + tests := []struct { name string roomID int @@ -111,7 +115,7 @@ func TestBuildFullMap(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - lines := buildFullMap(g, tt.roomID, tt.width, tt.height) + lines := buildFullMap(g, tt.roomID, tt.width, tt.height, mg) if len(lines) != tt.height { t.Errorf("expected %d lines, got %d", tt.height, len(lines)) } -- cgit v1.2.3