You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
172 B
10 lines
172 B
4 months ago
|
# -*- 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
|