diff options
| author | Charlie Blake | 2018-06-08 21:54:48 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-06-08 21:54:48 +0100 |
| commit | a7396c5497601855fad019cfd145ca6c93e1c40f (patch) | |
| tree | 99bdf08b2eb8f15c38a4ddb74c68d45bacd0fae1 /src/test/test_helper.cpp | |
| parent | Fix built move bug and add unit tests (diff) | |
| download | metasol-a7396c5497601855fad019cfd145ca6c93e1c40f.tar.gz metasol-a7396c5497601855fad019cfd145ca6c93e1c40f.zip | |
Refactor moves logic
Diffstat (limited to 'src/test/test_helper.cpp')
| -rw-r--r-- | src/test/test_helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_helper.cpp b/src/test/test_helper.cpp index 18b36eb..dbc6f0d 100644 --- a/src/test/test_helper.cpp +++ b/src/test/test_helper.cpp @@ -52,7 +52,7 @@ void test_helper::run_foundations_dominance_test(sol_rules::build_policy policy, solver::node const *n = &sol.get_search_tree(); for (card c : cards) { n = &n->children.back(); - ASSERT_TRUE(n->mv.is_dominance()); + ASSERT_TRUE(n->mv.type == move::mtype::dominance); ASSERT_TRUE(gs.get_data()[n->mv.from].top_card() == c); ASSERT_TRUE(n->mv.to >= 0 && n->mv.to <= 4); gs.make_move(n->mv); |
