Skip to content

Commit

Permalink
choreBuildingTypeCostTest): general refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alemazzo committed Sep 19, 2023
1 parent 7913903 commit 4fa79ee
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/test/scala/scatan/model/building/BuildingTypeTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class BuildingTypeTest extends BaseTest:
class BuildingTypeCostTest extends BaseTest:

"A Settlement" should "cost 1 wood, 1 brick, 1 sheep" in {
val cost: Cost = Settlement.cost
cost should be(
Settlement.cost should be(
Cost(
Wood * 1,
Brick * 1,
Expand All @@ -44,18 +43,17 @@ class BuildingTypeCostTest extends BaseTest:
}

"A City" should "cost 2 wheat, 3 rock" in {
val cost: Cost = City.cost
cost should be(
City.cost should be(
Cost(
Wheat * 2,
Rock * 3
)
)

}

"A Road" should "cost 1 wood, 1 brick" in {
val cost: Cost = Road.cost
cost should be(
Road.cost should be(
Cost(
Wood * 1,
Brick * 1
Expand Down

0 comments on commit 4fa79ee

Please sign in to comment.