ioredis-mock icon indicating copy to clipboard operation
ioredis-mock copied to clipboard

Issue with negative stop offset larger than set size in sorted sets

Open prince737 opened this issue 4 years ago • 3 comments

Example:

zadd key 1 "one" 1 zremrangebyrank key 0 -3 1 (expected 0)

Related to this change https://github.com/stipsan/ioredis-mock/pull/708 It fixed the scenario mentioned in the pr but breaks the above one.

prince737 avatar Oct 14 '20 06:10 prince737

PRs welcome 😄

stipsan avatar Oct 28 '20 19:10 stipsan

PRs welcome 😄

Sure, will spend some time seeing what I can do.

prince737 avatar Oct 29 '20 07:10 prince737

Awesome 😃

stipsan avatar Oct 29 '20 22:10 stipsan