mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-05 03:17:11 +00:00
9 lines
148 B
Python
9 lines
148 B
Python
|
from pybind11_tests import union_ as m
|
||
|
|
||
|
|
||
|
def test_union():
|
||
|
instance = m.TestUnion()
|
||
|
|
||
|
instance.as_uint = 10
|
||
|
assert instance.as_int == 10
|