Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Sep 28, 2022
1 parent b46d868 commit 6ab8bc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/ogame/lfBuildings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ func TestResidentialSectorCost(t *testing.T) {
assert.Equal(t, Resources{Metal: 7, Crystal: 2}, a.GetPrice(1))
assert.Equal(t, Resources{Metal: 16, Crystal: 4}, a.GetPrice(2))
assert.Equal(t, Resources{Metal: 30, Crystal: 8}, a.GetPrice(3))
assert.Equal(t, Resources{Metal: 120594, Crystal: 34455}, a.GetPrice(35))
}

func TestBiosphereFarmCost(t *testing.T) {
Expand All @@ -23,3 +24,8 @@ func TestResearchCenterCost(t *testing.T) {
assert.Equal(t, Resources{Metal: 20000, Crystal: 25000, Deuterium: 10000}, a.GetPrice(1))
assert.Equal(t, Resources{Metal: 52000, Crystal: 65000, Deuterium: 26000}, a.GetPrice(2))
}

//func TestResidentialSectorConstructionTime(t *testing.T) {
// rs := newResidentialSector()
// assert.Equal(t, (6*60*60+58*60+48)*time.Second, rs.ConstructionTime(35, 4, Facilities{}, false, false))
//}

0 comments on commit 6ab8bc6

Please sign in to comment.