Skip to content

Commit 426dbfc

Browse files
author
Ivan Baidakou
committed
More optimal strings for tests
1 parent 09885f7 commit 426dbfc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

t/05-protocol.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ TEST_CASE("malformed bulk string(3)", "[protocol]") {
205205

206206
TEST_CASE("malformed bulk string(4)", "[protocol]") {
207207
using Policy = r::parsing_policy::drop_result;
208-
std::string ok =
209-
"$4555555555555555555555555555555555555555555555555555\r\nsomemm";
208+
std::string ok = "$36893488147419103232\r\nsomemm";
210209
Buffer buff(ok.c_str(), ok.size());
211210
auto from = Iterator::begin(buff), to = Iterator::end(buff);
212211
auto parsed_result = r::Protocol::parse<Iterator, Policy>(from, to);
@@ -253,7 +252,7 @@ TEST_CASE("malformed array", "[protocol]") {
253252
};
254253

255254
TEST_CASE("malformed array (2)", "[protocol]") {
256-
std::string ok = "*555555555555555555555555555555555555555\r\nsome\r\n";
255+
std::string ok = "*36893488147419103232\r\nsome\r\n";
257256
Buffer buff(ok.c_str(), ok.size());
258257
auto from = Iterator::begin(buff), to = Iterator::end(buff);
259258
auto parsed_result = r::Protocol::parse(from, to);

0 commit comments

Comments
 (0)