Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nekipelov committed Dec 8, 2017
1 parent 251da52 commit 985caf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/parsertest.cpp
Expand Up @@ -151,7 +151,8 @@ BOOST_FIXTURE_TEST_CASE(test_string_empty_array_2, ParserFixture)

BOOST_CHECK_EQUAL(value.isError(), false);
BOOST_CHECK_EQUAL(value.isOk(), true);
BOOST_CHECK_EQUAL(value.isArray(), true);
BOOST_CHECK_EQUAL(value.isArray(), false);
BOOST_CHECK_EQUAL(value.isNull(), true);
BOOST_CHECK(value.toArray() == std::vector<RedisValue>());
}

Expand Down Expand Up @@ -215,7 +216,7 @@ BOOST_FIXTURE_TEST_CASE(test_parser_by_parts, ParserFixture)
parseByPartsTest("$0\r\n\r\n", "");
parseByPartsTest("$-1\r\n", RedisValue());
parseByPartsTest("*0\r\n", std::vector<RedisValue>());
parseByPartsTest("*-1\r\n", std::vector<RedisValue>());
parseByPartsTest("*-1\r\n", RedisValue());

{
std::vector<RedisValue> array;
Expand Down

0 comments on commit 985caf5

Please sign in to comment.