aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_helper.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-07-06 17:27:39 +0100
committerGitHub2018-07-06 17:27:39 +0100
commit0e685d6e4a343daab945f5fb7d0cf250c077b6ff (patch)
tree634eede8d39d3e313c1206cb2b9a6f6205570f8c /src/test/test_helper.cpp
parentMerge pull request #74 from thecharlesblake/sol-streamliner-variants (diff)
parentRefactor k-plus impl to simplify and fix deal1 bug (diff)
downloadmetasol-0e685d6e4a343daab945f5fb7d0cf250c077b6ff.tar.gz
metasol-0e685d6e4a343daab945f5fb7d0cf250c077b6ff.zip

Merge pull request #75 from thecharlesblake/refactor-rules-json

Refactor rules json

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