kicad/thirdparty/pybind11/tests/test_union.py

10 lines
172 B
Python
Raw Normal View History

2021-03-08 14:54:22 +00:00
# -*- coding: utf-8 -*-
from pybind11_tests import union_ as m
def test_union():
instance = m.TestUnion()
instance.as_uint = 10
assert instance.as_int == 10