summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/nested_runme.py
blob: 0e839e64bb15a359773067f757d549e704995a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from nested import *

def check(a, b):
    if a != b:
        raise RuntimeError("Problem: {} != {}".format(a, b))
xx = x_t()
yy = y_t()
aa = a_t()
bb = b_t()
cc = c_t()
dd = d_t()

set_union_values(100, xx, yy, aa, bb, cc, dd)

check(xx.duplicate_p.x, 100)
check(yy.duplicate_p.y, 101)
check(aa.duplicate_p.a, 102)
check(bb.duplicate_p.b, 103)
check(cc.duplicate_p.c, 104)
check(dd.duplicate_p.d, 105)