From 5fde1f9563c98e2d661ac495e448d35eeb97e68c Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Fri, 29 Jun 2018 11:34:09 +0100 Subject: Fix bugs + correct built pile kings. Cell + founds --- src/test/test_helper.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/test/test_helper.cpp') 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); -- cgit v1.2.1