def test_transform_boolean_not(): _assert_transform( cc.not_(cc.ref("x")), js.unary_operation("!", js.ref("x")), )
def test_transform_boolean_not(self): _assert_transform( nodes.bool_not(nodes.ref("x")), cc.not_(cc.call(cc.builtin("bool"), [cc.ref("x")])), )