MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_enum_flag

Function test_enum_flag

tests/test_native_enum.py:96–100  ·  view source on GitHub ↗
(enum_type)

Source from the content-addressed store, hash-verified

94
95@pytest.mark.parametrize("enum_type", [m.flags_uchar, m.flags_uint])
96def test_enum_flag(enum_type):
97 bits02 = enum_type.bit0 | enum_type.bit2
98 assert enum_type.bit0 in bits02
99 assert enum_type.bit1 not in bits02
100 assert enum_type.bit2 in bits02
101
102
103def test_export_values():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected