diff options
Diffstat (limited to 'go/game/unit_test.go')
| -rw-r--r-- | go/game/unit_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/go/game/unit_test.go b/go/game/unit_test.go index 341fb350..d6b5b079 100644 --- a/go/game/unit_test.go +++ b/go/game/unit_test.go @@ -44,6 +44,18 @@ symbols: } } + if INVALID_ATTACK(f.Attack) { + t.Fatalf("fisher has an invalid attack") + } + + if a.Attackable() { + t.Fatalf("Piled archer is attackable") + } + + if len(a.AttackableTiles(s.Map)) != 0 { + t.Fatalf("Piled archer has attackable tiles") + } + a.move(s, s.Map.TileAt(Position{1, 1})) if len(f.Pile()) != 0 { t.Fatalf("fisher's pile is not empty") |
