(self, r)
| 1696 | @pytest.mark.onlynoncluster |
| 1697 | @skip_if_server_version_lt("8.1.224") |
| 1698 | def test_bitop_andor(self, r): |
| 1699 | r["a"] = b"\xf0" |
| 1700 | r["b"] = b"\xc0" |
| 1701 | r["c"] = b"\x80" |
| 1702 | |
| 1703 | result = r.bitop("ANDOR", "result", "a", "b", "c") |
| 1704 | assert result == 1 |
| 1705 | assert r["result"] == b"\xc0" |
| 1706 | |
| 1707 | r["x"] = b"\xf0" |
| 1708 | r["y"] = b"\x0f" |
| 1709 | r.bitop("ANDOR", "result2", "x", "y") |
| 1710 | assert r["result2"] == b"\x00" |
| 1711 | |
| 1712 | @pytest.mark.onlynoncluster |
| 1713 | @skip_if_server_version_lt("8.1.224") |