(self, r)
| 1712 | @pytest.mark.onlynoncluster |
| 1713 | @skip_if_server_version_lt("8.1.224") |
| 1714 | def test_bitop_one(self, r): |
| 1715 | r["a"] = b"\xf0" |
| 1716 | r["b"] = b"\xc0" |
| 1717 | r["c"] = b"\x80" |
| 1718 | |
| 1719 | result = r.bitop("ONE", "result", "a", "b", "c") |
| 1720 | assert result == 1 |
| 1721 | assert r["result"] == b"\x30" |
| 1722 | |
| 1723 | r["x"] = b"\xf0" |
| 1724 | r["y"] = b"\x0f" |
| 1725 | r.bitop("ONE", "result2", "x", "y") |
| 1726 | assert r["result2"] == b"\xff" |
| 1727 | |
| 1728 | @pytest.mark.onlynoncluster |
| 1729 | @skip_if_server_version_lt("8.1.224") |