Commit 9d8d578e authored by Qesait's avatar Qesait
Browse files

word get fix

parent 4dc3e7bc
1 merge request!1добавил исключения, функция in может работать без скобок, поправил внешний вид...
Showing with 9 additions and 9 deletions
+9 -9
......@@ -22,10 +22,10 @@ WordPluginWrapper::get(const std::string &word,
json request_message = {
{"query_type", "get" },
{"plugin_type", plugin_type_ },
{"query", word },
{"query_language", query_language},
{"word", word },
{"filter", query_language},
{"batch_size", batch_size },
{"reload", reload ? 1 : 0}
{"restart", reload}
};
std::pair<bool, std::string> response(
std::move(connection_->request(request_message.dump())));
......
......@@ -18,12 +18,12 @@ TEST(WordPWGet, Output) {
json actual = json::parse(memorizer->received_message);
json expected = {
{"query_type", "get" },
{"plugin_type", "word" },
{"query", "test_word"},
{"query_language", "pos::noun"},
{"batch_size", 3 },
{"reload", 1 }
{"query_type", "get" },
{"plugin_type", "word" },
{"word", "test_word"},
{"filter", "pos::noun"},
{"batch_size", 3 },
{"restart", true }
};
EXPECT_EQ(expected, actual);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment