(self, r)
| 1666 | @pytest.mark.onlynoncluster |
| 1667 | @skip_if_server_version_lt("8.1.224") |
| 1668 | def test_bitop_diff(self, r): |
| 1669 | r["a"] = b"\xf0" |
| 1670 | r["b"] = b"\xc0" |
| 1671 | r["c"] = b"\x80" |
| 1672 | |
| 1673 | result = r.bitop("DIFF", "result", "a", "b", "c") |
| 1674 | assert result == 1 |
| 1675 | assert r["result"] == b"\x30" |
| 1676 | |
| 1677 | r.bitop("DIFF", "result2", "a", "nonexistent") |
| 1678 | assert r["result2"] == b"\xf0" |
| 1679 | |
| 1680 | @pytest.mark.onlynoncluster |
| 1681 | @skip_if_server_version_lt("8.1.224") |