Exemplo n.º 1
0
def test_serialize_unary_operation():
    assert_equal("-x", _dumps(js.unary_operation("-", js.ref("x"))))
Exemplo n.º 2
0
def test_transform_boolean_not():
    _assert_transform(
        cc.not_(cc.ref("x")),
        js.unary_operation("!", js.ref("x")),
    )