From ba02f7b13ba4832582637f7be194c834f377f69d Mon Sep 17 00:00:00 2001 From: jazzthief Date: Thu, 2 Feb 2023 12:36:48 +0100 Subject: [PATCH] Add context tests --- test/sql/test_operators.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py index 10228af388..a8dcfe237d 100644 --- a/test/sql/test_operators.py +++ b/test/sql/test_operators.py @@ -4559,10 +4559,15 @@ class BitOpTest(fixtures.TestBase, testing.AssertsCompiledSQL): @testing.combinations( ("xor", operators.bitwise_xor_op, "^"), + ("xor_lambda", lambda c1, c2: c1.bitwise_xor(c2), "^"), ("or", operators.bitwise_or_op, "|"), + ("or_lambda", lambda c1, c2: c1.bitwise_or(c2), "|"), ("and", operators.bitwise_and_op, "&"), + ("and_lambda", lambda c1, c2: c1.bitwise_and(c2), "&"), ("lshift", operators.bitwise_lshift_op, "<<"), + ("ls_lambda", lambda c1, c2: c1.bitwise_lshift(c2), "<<"), ("rshift", operators.bitwise_rshift_op, ">>"), + ("rs_lambda", lambda c1, c2: c1.bitwise_rshift(c2), ">>"), id_="iaa", ) def test_compile_binary(self, py_op, sql_op): -- 2.47.3