示例#1
0
def test_parens_are_not_used_if_high_precedence_operation_is_inside_low_precedence_operation():
    assert_equal("x.y || z", _dumps(js.or_(js.property_access(js.ref("x"), "y"), js.ref("z"))))
示例#2
0
def test_transform_boolean_or():
    _assert_transform(
        cc.or_(cc.ref("x"), cc.ref("y")),
        js.or_(js.ref("x"), js.ref("y")),
    )