aboutsummaryrefslogtreecommitdiff
path: root/go/game/map_test.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-08-12 08:25:58 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-12 08:25:58 +0200
commit3dc052d23f554138f74ba86b4f08f41242bd9623 (patch)
tree036805e7420e8799dbfd260529136517e88fe92a /go/game/map_test.go
parent4318677831e1ada30d3399f3da1dd803ceb1cbbb (diff)
downloadmuhqs-game-3dc052d23f554138f74ba86b4f08f41242bd9623.tar.gz
muhqs-game-3dc052d23f554138f74ba86b4f08f41242bd9623.zip
support parsing of simple equipment effects
Diffstat (limited to 'go/game/map_test.go')
-rw-r--r--go/game/map_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/go/game/map_test.go b/go/game/map_test.go
index bc17dd55..038cde93 100644
--- a/go/game/map_test.go
+++ b/go/game/map_test.go
@@ -17,6 +17,19 @@ func parseMapString(t *testing.T, mapDef string) *Map {
return m
}
+func newEmpty2x2Map() *Map {
+ mapDef := `map: |1-
+ __
+ __
+
+symbols:
+ _: neutral
+`
+ m, _ := readMap(strings.NewReader(mapDef))
+
+ return m
+}
+
func TestParseMapEndingStreets(t *testing.T) {
mapDef := `map: |1-
HST