MCPcopy
hub / github.com/redis/redis-py / test_bitop_diff1

Method test_bitop_diff1

tests/test_commands.py:1682–1694  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

1680 @pytest.mark.onlynoncluster
1681 @skip_if_server_version_lt("8.1.224")
1682 def test_bitop_diff1(self, r):
1683 r["a"] = b"\xf0"
1684 r["b"] = b"\xc0"
1685 r["c"] = b"\x80"
1686
1687 result = r.bitop("DIFF1", "result", "a", "b", "c")
1688 assert result == 1
1689 assert r["result"] == b"\x00"
1690
1691 r["d"] = b"\x0f"
1692 r["e"] = b"\x03"
1693 r.bitop("DIFF1", "result2", "d", "e")
1694 assert r["result2"] == b"\x00"
1695
1696 @pytest.mark.onlynoncluster
1697 @skip_if_server_version_lt("8.1.224")

Callers

nothing calls this directly

Calls 1

bitopMethod · 0.80

Tested by

no test coverage detected