diff options
author | Tim <tim@fewagainstmany.com> | 2012-11-25 20:54:24 -0800 |
---|---|---|
committer | Tim <tim@fewagainstmany.com> | 2012-11-25 20:54:24 -0800 |
commit | 4b812901ab3cbf556e71361796a6edf9b80e446c (patch) | |
tree | 06afd9f563b9477b5ba9e364cea793be55018532 /tests/server_commands.py | |
parent | 7042051522b2d20afaa1b5a769586b42e19f3560 (diff) | |
download | redis-py-4b812901ab3cbf556e71361796a6edf9b80e446c.tar.gz |
Fixed bug in bitcount with start or end param equal to 0
Diffstat (limited to 'tests/server_commands.py')
-rw-r--r-- | tests/server_commands.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py index dcc7e2a..78f9bb8 100644 --- a/tests/server_commands.py +++ b/tests/server_commands.py @@ -251,6 +251,7 @@ class ServerCommandsTestCase(unittest.TestCase): self.client.setbit('a', 25, True) self.client.setbit('a', 33, True) self.assertEquals(self.client.bitcount('a'), 5) + self.assertEquals(self.client.bitcount('a', 0, -1), 5) self.assertEquals(self.client.bitcount('a', 2, 3), 2) self.assertEquals(self.client.bitcount('a', 2, -1), 3) self.assertEquals(self.client.bitcount('a', -2, -1), 2) |