mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-19 21:23:26 +08:00
10 lines
172 B
Python
10 lines
172 B
Python
# -*- 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
|