aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_helper.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-06-08 21:54:48 +0100
committerCharlie Blake2018-06-08 21:54:48 +0100
commita7396c5497601855fad019cfd145ca6c93e1c40f (patch)
tree99bdf08b2eb8f15c38a4ddb74c68d45bacd0fae1 /src/test/test_helper.cpp
parentFix built move bug and add unit tests (diff)
downloadmetasol-a7396c5497601855fad019cfd145ca6c93e1c40f.tar.gz
metasol-a7396c5497601855fad019cfd145ca6c93e1c40f.zip

Refactor moves logic

Diffstat (limited to 'src/test/test_helper.cpp')
-rw-r--r--src/test/test_helper.cpp2
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);