File: test_union.py

package info (click to toggle)
hera 2.0.0%2Bgit20221115.8bfdd4b%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,120 kB
  • sloc: cpp: 30,506; python: 8,986; ansic: 2,088; sh: 49; makefile: 16
file content (8 lines) | stat: -rw-r--r-- 148 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
from pybind11_tests import union_ as m


def test_union():
    instance = m.TestUnion()

    instance.as_uint = 10
    assert instance.as_int == 10