https://github.com/pybind/pybind11
Tip revision: b07fddb21993d4fa358822dcbf2b36e0fd20db46 authored by dependabot[bot] on 23 May 2024, 05:41:59 UTC
--- (#5130)
--- (#5130)
Tip revision: b07fddb
test_const_name.py
import pytest
from pybind11_tests import const_name as m
@pytest.mark.parametrize("func", [m.const_name_tests, m.underscore_tests])
@pytest.mark.parametrize(
("selector", "expected"),
enumerate(
(
"",
"A",
"Bd",
"Cef",
"%",
"%",
"T1",
"U2",
"D1",
"E2",
"KeepAtEnd",
)
),
)
def test_const_name(func, selector, expected):
if isinstance(func, str):
pytest.skip(func)
text = func(selector)
assert text == expected