wrap
pybind11
tests
test_const_name.py
Go to the documentation of this file.
1
import
pytest
2
3
from
pybind11_tests
import
const_name
as
m
4
5
6
@pytest.mark.parametrize(
"func"
, [m.const_name_tests, m.underscore_tests])
7
@pytest.mark.parametrize(
8
(
"selector"
,
"expected"
),
9
enumerate(
10
(
11
""
,
12
"A"
,
13
"Bd"
,
14
"Cef"
,
15
"%"
,
16
"%"
,
17
"T1"
,
18
"U2"
,
19
"D1"
,
20
"E2"
,
21
"KeepAtEnd"
,
22
)
23
),
24
)
25
def
test_const_name
(func, selector, expected):
26
if
isinstance
(func, str):
27
pytest.skip(func)
28
text =
func
(selector)
29
assert
text == expected
isinstance
bool isinstance(handle obj)
Definition:
pytypes.h:825
test_const_name.test_const_name
def test_const_name(func, selector, expected)
Definition:
test_const_name.py:25
func
Definition:
benchGeometry.cpp:23
gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:05:28