blob: 84c15652c67303ee2eee2d56857ea1d59551193c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package game
import (
"testing"
)
func TestSolid(t *testing.T) {
p := NewArtifactFromPath("base/palisade", NewMockTile(), NewMockPlayer())
if !p.Attackable() {
t.Fatal("palisade not attackable")
}
if p.IsDestroyed() {
t.Fatal("palisade already destroyed")
}
p.adjustDamage(6)
if !p.IsDestroyed() {
t.Fatal("palisade not destroyed")
}
}
|