Fix several bugs.

Fix #17, also fix #14, fix #10 and fix #16.
This commit is contained in:
Roman Gershman 2022-04-18 01:12:06 +03:00
parent e5a3a83bae
commit f113d29918
8 changed files with 29 additions and 15 deletions

View file

@ -98,6 +98,8 @@ TEST_F(ZSetFamilyTest, ZRemRangeScore) {
EXPECT_THAT(Run({"zrange", "x", "0", "5"}), ElementsAre("b"));
EXPECT_THAT(Run({"ZREMRANGEBYSCORE", "x", "(2.0", "+inf"}), ElementsAre(IntArg(1)));
EXPECT_THAT(Run({"type", "x"}), ElementsAre("none"));
EXPECT_THAT(Run({"zremrangebyscore", "x", "1", "NaN"}),
ElementsAre(ErrArg("min or max is not a float")));
}
TEST_F(ZSetFamilyTest, IncrBy) {