The calculation of how many harvest shares are expected in total.
This commit is contained in:
@ -86,6 +86,13 @@ TEST_F(ModelTest, ExpectedPlacedBiddings) {
|
||||
ASSERT_EQ(expected, expectedPlacedBiddings);
|
||||
}
|
||||
|
||||
TEST_F(ModelTest, ExpectedTotalShareAmount) {
|
||||
const int expected = 0;
|
||||
const auto nTotalExpectedShares = model->nTotalExpectedShares();
|
||||
|
||||
ASSERT_EQ(expected, nTotalExpectedShares);
|
||||
}
|
||||
|
||||
/// model with data
|
||||
|
||||
TEST_F(ModelTestWithData, TestRowCount) {
|
||||
@ -115,3 +122,10 @@ TEST_F(ModelTestWithData, PlacedBiddings1) {
|
||||
|
||||
ASSERT_EQ(expected, actual);
|
||||
}
|
||||
|
||||
TEST_F(ModelTestWithData, NTotalExpectedShares) {
|
||||
const qreal expected = 3;
|
||||
const auto actual = model->nTotalExpectedShares();
|
||||
|
||||
ASSERT_EQ(expected, actual);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user