def test_str_api():
    from pybind11_tests import test_str_format

    s1, s2 = test_str_format()
    if s1 != "1 + 2 = 3":
        raise AssertionError
    if s1 != s2:
        raise AssertionError
def test_str_api():
    from pybind11_tests import test_str_format

    s1, s2 = test_str_format()
    assert s1 == "1 + 2 = 3"
    assert s1 == s2
Beispiel #3
0
def test_str_api():
    from pybind11_tests import test_str_format

    s1, s2 = test_str_format()
    assert s1 == "1 + 2 = 3"
    assert s1 == s2