From 93f22b114369a0db79a2afd2a87bb738b1966800 Mon Sep 17 00:00:00 2001 From: jazzthief Date: Wed, 18 Jan 2023 10:44:40 +0100 Subject: [PATCH] Add compiler test for NOT --- test/sql/test_operators.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py index 305b74f677..f80be34463 100644 --- a/test/sql/test_operators.py +++ b/test/sql/test_operators.py @@ -4518,6 +4518,16 @@ class AnyAllTest(fixtures.TestBase, testing.AssertsCompiledSQL): class BitOpTest(fixtures.TestBase, testing.AssertsCompiledSQL): + __dialect__ = "default" + + def test_compile_not(self): + c = column("c", Integer) + + self.assert_compile( + select(operators.bitwise_not_op(c)), + "SELECT ~c", + ) + @testing.combinations( ("xor", operators.bitwise_xor_op, "^"), ("or", operators.bitwise_or_op, "|"), -- 2.47.3