aboutsummaryrefslogtreecommitdiff
path: root/internal/game/map_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-15 00:03:55 -0400
committerhistoria <[not public]>2026-06-15 00:03:55 -0400
commitb6fdde0aa6fcefd735e7c550aaa7fca879023f1c (patch)
tree924be72a906522d60512213cdbaba1f55e694bd3 /internal/game/map_test.go
parenteb37418b933d7bd996658209e867ea3f3e3806ec (diff)
downloadthehouseoficarus-b6fdde0aa6fcefd735e7c550aaa7fca879023f1c.tar.gz
feat: unicode option, fixed up options and tables
Diffstat (limited to 'internal/game/map_test.go')
-rw-r--r--internal/game/map_test.go8
1 files changed, 6 insertions, 2 deletions
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))
}