aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorCharlie Blake2018-07-05 14:20:45 +0100
committerCharlie Blake2018-07-05 14:20:45 +0100
commit1076f965178523503d144ef32d50ff0858de78a2 (patch)
tree7a45368df4ffb31dd99dceb5ed47d8f7aefd0aa5 /src/test
parentMerge pull request #74 from thecharlesblake/sol-streamliner-variants (diff)
downloadmetasol-1076f965178523503d144ef32d50ff0858de78a2.tar.gz
metasol-1076f965178523503d144ef32d50ff0858de78a2.zip

Fix unit test compile bug

Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_helper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_helper.cpp b/src/test/test_helper.cpp
index c85cf39..c4f902e 100644
--- a/src/test/test_helper.cpp
+++ b/src/test/test_helper.cpp
@@ -18,13 +18,14 @@ using std::vector;
using std::ostream;
typedef std::initializer_list<std::initializer_list<std::string>> string_il;
+typedef game_state::streamliner_options sos;
bool test_helper::is_solvable(const std::string& input_file, const std::string& preset_type) {
const Document in_doc = json_helper::get_file_json(input_file);
const sol_rules rules = rules_parser::from_preset(preset_type);
- game_state gs(rules, in_doc, false);
+ game_state gs(rules, in_doc, sos::NONE);
solver sol(gs, 1000000);
return sol.run() == solver::sol_state::solved;