Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Владислав Будин
CardGen
Commits
9d8d578e
Commit
9d8d578e
authored
1 year ago
by
Qesait
Browse files
Options
Download
Patches
Plain Diff
word get fix
parent
4dc3e7bc
main
1 merge request
!1
добавил исключения, функция in может работать без скобок, поправил внешний вид...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/lib/plugin_wrappers/word/WordPluginWrapper.cpp
+3
-3
client/lib/plugin_wrappers/word/WordPluginWrapper.cpp
client/lib/plugin_wrappers/word/WordPluginWrapper_tests.cpp
+6
-6
client/lib/plugin_wrappers/word/WordPluginWrapper_tests.cpp
with
9 additions
and
9 deletions
+9
-9
client/lib/plugin_wrappers/word/WordPluginWrapper.cpp
+
3
−
3
View file @
9d8d578e
...
...
@@ -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
},
{
"re
load
"
,
reload
?
1
:
0
}
{
"re
start
"
,
reload
}
};
std
::
pair
<
bool
,
std
::
string
>
response
(
std
::
move
(
connection_
->
request
(
request_message
.
dump
())));
...
...
This diff is collapsed.
Click to expand it.
client/lib/plugin_wrappers/word/WordPluginWrapper_tests.cpp
+
6
−
6
View file @
9d8d578e
...
...
@@ -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
},
{
"re
load
"
,
1
}
{
"query_type"
,
"get"
},
{
"plugin_type"
,
"word"
},
{
"
word"
,
"test_word"
},
{
"
filter"
,
"pos::noun"
},
{
"batch_size"
,
3
},
{
"re
start
"
,
true
}
};
EXPECT_EQ
(
expected
,
actual
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets