swig/Examples/test-suite/python/li_boost_shared_ptr_bits_runme.py
2008-04-04 23:29:59 +00:00

20 lines
244 B
Python

from li_boost_shared_ptr_bits import *
def check(nd):
nd.i = 200
i = nd.i
try:
nd.notexist = 100
passed = 0
except:
passed = 1
if not passed:
raise "Test failed"
nd = NonDynamic()
check(nd)
b = boing(nd)
check(b)