Skip to content

Commit 659ea2a

Browse files
Jan-ESean-Der
authored andcommitted
Fix setBit/getBit test, do not know why the fiz works
1 parent 314a2c3 commit 659ea2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/RedisTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ public function testBitsets() {
154154
// Verify valid offset ranges
155155
$this->assertFalse($this->redis->getBit('key', -1));
156156

157-
$this->redis->setBit('key', 4294967295, 1);
158-
$this->assertEquals(1, $this->redis->getBit('key', 4294967295));
157+
$this->redis->setBit('key', ((2^32)-1), 1);
158+
$this->assertEquals(1, $this->redis->getBit('key', ((2^32)-1)));
159159
}
160160

161161
public function testBitPos() {

0 commit comments

Comments
 (0)