Ejemplo n.º 1
0
def test_regressions():
    from pybind11_tests.issues import print_cchar, print_char

    # #137: const char* isn't handled properly
    assert print_cchar("const char *") == "const char *"
    # #150: char bindings broken
    assert print_char("c") == "c"
Ejemplo n.º 2
0
def test_regressions():
    from pybind11_tests.issues import print_cchar, print_char

    # #137: const char* isn't handled properly
    assert print_cchar("const char *") == "const char *"
    # #150: char bindings broken
    assert print_char("c") == "c"
Ejemplo n.º 3
0
def test_regressions():
    from pybind11_tests.issues import print_cchar, print_char

    # #137: const char* isn't handled properly
    if print_cchar("const char *") != "const char *":
        raise AssertionError
    # #150: char bindings broken
    if print_char("c") != "c":
        raise AssertionError