aboutsummaryrefslogtreecommitdiff
path: root/src/test/integration_tests/canfield_test.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-09-29 15:17:32 +0100
committerGitHub2018-09-29 15:17:32 +0100
commita0764bc453d6a5338a35b2d594f2f2fcf5662e5c (patch)
tree80f615148bee020622fc5b345ca21c20e0941ddf /src/test/integration_tests/canfield_test.cpp
parentMerge pull request #92 from thecharlesblake/canfield-comp (diff)
parentFix reserve-foundation bug (diff)
downloadmetasol-a0764bc453d6a5338a35b2d594f2f2fcf5662e5c.tar.gz
metasol-a0764bc453d6a5338a35b2d594f2f2fcf5662e5c.zip

Merge pull request #93 from thecharlesblake/canfield-fix

Canfield fix

Diffstat (limited to 'src/test/integration_tests/canfield_test.cpp')
-rw-r--r--src/test/integration_tests/canfield_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/integration_tests/canfield_test.cpp b/src/test/integration_tests/canfield_test.cpp
index 006f4fb..0cb14b2 100644
--- a/src/test/integration_tests/canfield_test.cpp
+++ b/src/test/integration_tests/canfield_test.cpp
@@ -62,16 +62,16 @@ TEST(Canfield, MoveWholePile) {
sol_rules sr = rules_parser::from_preset("simple-canfield");
game_state gs(sr, string_il{
- {"3C"},{},{},{}, // Foundations
+ {"AC"},{},{},{}, // Foundations
{},{}, // Stock-waste
{}, // Reserve
- {"3H","2S","AH"},{"AS"},{"2D"} // Tableau piles
+ {"2C","AH"},{"3H"},{"3C","2D"} // Tableau piles
});
vector<move> actual_moves = gs.get_legal_moves();
vector<move> exp_moves = {
- move(move::mtype::built_group, 7, 8, 3),
- move(move::mtype::built_group, 8, 9, 1),
+ move(move::mtype::built_group, 7, 8, 2),
+ move(move::mtype::regular, 7, 1, 1),
};
ASSERT_TRUE(test_helper::moves_eq(exp_moves, actual_moves)) << actual_moves;