Fix: Building10Test Correctly Handles Buying Building Cards
This commit is contained in:
@@ -16,7 +16,7 @@ class Building10Test {
|
||||
void applyEffect() {
|
||||
Building10 b10 = new Building10(1, 1);
|
||||
Player p = new Player("test");
|
||||
p.addPrestige(b10.getPrice());
|
||||
p.addFood(b10.getPrice());
|
||||
b10.buy(p);
|
||||
|
||||
int Era = 1;
|
||||
@@ -44,8 +44,8 @@ class Building10Test {
|
||||
p.hunters.addAll(Hunters);
|
||||
p.inventors.addAll(Inventors);
|
||||
p.shamans.addAll(Shamans);
|
||||
b10.applyEffect(p);
|
||||
|
||||
b10.applyEffect(p);
|
||||
assertEquals(Nset * 6, p.getFoodValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user