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.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/go/game/map_test.go b/go/game/map_test.go
index 732c8b86..8212f648 100644
--- a/go/game/map_test.go
+++ b/go/game/map_test.go
@@ -30,7 +30,7 @@ kings:
- (9,1)`
r := strings.NewReader(s)
- m, err := parseMap(r)
+ m, err := readMap(r)
if err != nil {
t.Fatalf("Parsing failed with: %v", err)
}
@@ -51,3 +51,11 @@ kings:
t.Fatalf("ressource gain is not the default one")
}
}
+
+func TestLoadingAllMaps(T *testing.T) {
+ maps := []string{"the-tyrant", "2P-ring-street", "2P-river-king", "3P-ring-street", "4P-islands", "the-kraken"}
+
+ for _, m := range maps {
+ LoadMap("../../maps/" + m + ".yml")
+ }
+}