diff options
| author | Charlie Blake | 2018-06-29 11:34:09 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-06-29 11:34:09 +0100 |
| commit | 5fde1f9563c98e2d661ac495e448d35eeb97e68c (patch) | |
| tree | da08d5ab8602567130dbd9ccaa1863d7ea4dda77 /src/test/test_helper.cpp | |
| parent | Implement to pass unit tests (diff) | |
| download | metasol-5fde1f9563c98e2d661ac495e448d35eeb97e68c.tar.gz metasol-5fde1f9563c98e2d661ac495e448d35eeb97e68c.zip | |
Fix bugs + correct built pile kings. Cell + founds
Diffstat (limited to 'src/test/test_helper.cpp')
| -rw-r--r-- | src/test/test_helper.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/test_helper.cpp b/src/test/test_helper.cpp index 333cc07..c85cf39 100644 --- a/src/test/test_helper.cpp +++ b/src/test/test_helper.cpp @@ -105,18 +105,18 @@ void test_helper::k_plus_stock_test gs.make_move(m); - ASSERT_EQ(gs.get_data()[0].size(), stock_size) << gs.get_data()[0].size(); - ASSERT_EQ(gs.get_data()[1].size(), waste_size) << gs.get_data()[1].size(); + ASSERT_EQ(gs.get_data()[gs.stock].size(), stock_size) << gs.get_data()[gs.stock].size(); + ASSERT_EQ(gs.get_data()[gs.waste].size(), waste_size) << gs.get_data()[gs.waste].size(); if (top_stock == card()) - ASSERT_TRUE(gs.get_data()[0].empty()); + ASSERT_TRUE(gs.get_data()[gs.stock].empty()); else - ASSERT_EQ(gs.get_data()[0].top_card(), top_stock ) << gs.get_data()[0].top_card().to_string(); + ASSERT_EQ(gs.get_data()[gs.stock].top_card(), top_stock ) << gs.get_data()[gs.stock].top_card().to_string(); if (top_waste == card()) - ASSERT_TRUE(gs.get_data()[1].empty()); + ASSERT_TRUE(gs.get_data()[gs.waste].empty()); else - ASSERT_EQ(gs.get_data()[1].top_card(), top_waste ) << gs.get_data()[1].top_card().to_string(); + ASSERT_EQ(gs.get_data()[gs.waste].top_card(), top_waste ) << gs.get_data()[gs.waste].top_card().to_string(); gs.undo_move(m); |
