parent
5a22bcf007
commit
c39a379942
3 changed files with 70 additions and 0 deletions
20
Examples/test-suite/python/nested_runme.py
Normal file
20
Examples/test-suite/python/nested_runme.py
Normal file
|
|
@ -0,0 +1,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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue