From 6746771b8f8490c6e10f7f0d35226cdd7719f231 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 4 Sep 2025 15:24:14 +0200 Subject: update the YAML map definitions in the game tests --- go/game/action_test.go | 4 ++-- go/game/ai_test.go | 20 ++++++++++---------- go/game/areaEffect_test.go | 4 ++-- go/game/cardImplementations_test.go | 6 +++--- go/game/map_test.go | 10 +++++----- go/game/marks_test.go | 2 +- go/game/range_test.go | 2 +- go/game/targets_test.go | 6 +++--- go/game/unit_test.go | 4 ++-- 9 files changed, 29 insertions(+), 29 deletions(-) (limited to 'go/game') diff --git a/go/game/action_test.go b/go/game/action_test.go index d00b5d56..400717e7 100644 --- a/go/game/action_test.go +++ b/go/game/action_test.go @@ -107,7 +107,7 @@ func TestUnmarshalPickAction(t *testing.T) { } func TestAttackAction(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 H T SSS @@ -177,7 +177,7 @@ symbols: } func TestStreetAction(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HSH HSH HSS diff --git a/go/game/ai_test.go b/go/game/ai_test.go index 8a1a03c3..c43a284e 100644 --- a/go/game/ai_test.go +++ b/go/game/ai_test.go @@ -6,7 +6,7 @@ import ( ) func TestGenerateGraph(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST HSF TST @@ -43,7 +43,7 @@ symbols: } func TestAngrySquidDiagonal(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 WWWWWWW W W WW WW @@ -70,7 +70,7 @@ symbols: } func TestClowFish(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 WWWWW WWWWW WWWWW @@ -126,7 +126,7 @@ symbols: } func TestBauernFeind(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 WWW W WWW @@ -169,7 +169,7 @@ symbols: } func TestSuggestUnitAi(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST HSF TST @@ -205,7 +205,7 @@ symbols: } func TestUnitAIFromDesc(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST HSF TST @@ -225,7 +225,7 @@ symbols: } func TestShyUnitAI(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST HSF TST @@ -268,7 +268,7 @@ symbols: } func TestUnthreatendShyUnitAI(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST H H F W @@ -311,7 +311,7 @@ symbols: } func TestBlockedPathUnitAI(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 WSW WSW WSW @@ -358,7 +358,7 @@ symbols: } func TestAggressiveFlexAttackUnitAI(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 SSSS symbols: diff --git a/go/game/areaEffect_test.go b/go/game/areaEffect_test.go index 949bc592..2c438f1a 100644 --- a/go/game/areaEffect_test.go +++ b/go/game/areaEffect_test.go @@ -6,7 +6,7 @@ import ( ) func TestEnteringLeaving(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HH symbols: H: house @@ -68,7 +68,7 @@ symbols: } func TestFarmEffect(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 FH symbols: F: farm diff --git a/go/game/cardImplementations_test.go b/go/game/cardImplementations_test.go index 4a353443..7f0c2878 100644 --- a/go/game/cardImplementations_test.go +++ b/go/game/cardImplementations_test.go @@ -8,7 +8,7 @@ import ( ) func TestPioneerFullAction(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST H H FW @@ -63,7 +63,7 @@ symbols: } func TestPikemanRange(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 SSS SSS SHS @@ -128,7 +128,7 @@ symbols: } func TestMissionary(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 SSS SSS SHS diff --git a/go/game/map_test.go b/go/game/map_test.go index 4b2b2960..02f3adff 100644 --- a/go/game/map_test.go +++ b/go/game/map_test.go @@ -17,7 +17,7 @@ func parseMapString(t *testing.T, mapDef string) *Map { } func newEmpty2x2Map() *Map { - mapDef := `map: |1- + mapDef := `map: |+1 __ __ @@ -30,7 +30,7 @@ symbols: } func TestParseMapEndingStreets(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST HSF TST @@ -46,7 +46,7 @@ symbols: } func TestParseMap(t *testing.T) { - s := `map: |1- + s := `map: |+1 T H HT FSSSSS2H SHSH HS @@ -104,7 +104,7 @@ func TestLoadingAllMaps(t *testing.T) { } func TestTileAt(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HS HS @@ -129,7 +129,7 @@ symbols: } func TestMovementRangeTiles(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 T H HT FSSSSS2H SHSH HS diff --git a/go/game/marks_test.go b/go/game/marks_test.go index 6c5204e8..c04f53bf 100644 --- a/go/game/marks_test.go +++ b/go/game/marks_test.go @@ -6,7 +6,7 @@ import ( ) func TestParalysis(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 H symbols: diff --git a/go/game/range_test.go b/go/game/range_test.go index 268e9a54..959e5e8d 100644 --- a/go/game/range_test.go +++ b/go/game/range_test.go @@ -83,7 +83,7 @@ func TestDistanceBetweenPos(t *testing.T) { } func TestDistanceBetweenPerms(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 H T symbols: T: tower diff --git a/go/game/targets_test.go b/go/game/targets_test.go index e4105e8b..672df356 100644 --- a/go/game/targets_test.go +++ b/go/game/targets_test.go @@ -6,7 +6,7 @@ import ( ) func TestTileTargets(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HSTS HSFS TSWD @@ -139,7 +139,7 @@ func TestSpawnTargets(t *testing.T) { } func TestFlexAttackTargets(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HSTS HSFS TSWS @@ -171,7 +171,7 @@ symbols: } func TestDisjunction(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST HSF TSW diff --git a/go/game/unit_test.go b/go/game/unit_test.go index 0efefc3f..8c47e5eb 100644 --- a/go/game/unit_test.go +++ b/go/game/unit_test.go @@ -6,7 +6,7 @@ import ( ) func TestCrew(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST HSF TSW @@ -80,7 +80,7 @@ symbols: } func TestAttackablePerms(t *testing.T) { - mapDef := `map: |1- + mapDef := `map: |+1 HST HSF TSW -- cgit v1.2.3