コード例 #1
0
ファイル: js_tests.py プロジェクト: mwilliamson/nope
def test_serialize_binary_operation():
    assert_equal("x + y", _dumps(js.binary_operation("+", js.ref("x"), js.ref("y"))))
コード例 #2
0
def test_transform_is_operation():
    _assert_transform(
        cc.is_(cc.ref("x"), cc.ref("y")),
        js.binary_operation("===", js.ref("x"), js.ref("y"))
    )