aboutsummaryrefslogtreecommitdiff
path: root/go/game/map_test.go
diff options
context:
space:
mode:
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