def test_ternary_conditional_operation(): conditional = js.ternary_conditional(js.ref("x"), js.ref("y"), js.ref("z")) assert_equal("x ? y : z", _dumps(conditional))
def test_transform_ternary_conditional(): _assert_transform( cc.ternary_conditional(cc.ref("x"), cc.ref("y"), cc.ref("z")), js.ternary_conditional(js.ref("x"), js.ref("y"), js.ref("z")), )