Closed Diskein closed 1 month ago
Hi, thank you for the fix.
Please run flake8 and black on the code.
Also, it is not clear to me why you created positive_range
instead of fixing fix_range
?
Hi, I simplified the changes a bit. Thanks again for your contribution!
Hey! Thanks for the library! :rocket:
I've recently been testing dragonfly's BITPOS implementation with fakeredis and stumbled upon some bugs in fakeredis's implementation, so I've decided to fix it. The misbehaving is related to the clear bit mode i.e. when BITPOS command looking for 0 bit.
https://redis.io/docs/latest/commands/bitpos/
This PR fixes this, so for the clear bit mode: