mirror of https://github.com/swig/swig.git
16 lines
510 B
Python
16 lines
510 B
Python
import cpp0x_null_pointer_constant
|
|
|
|
a = cpp0x_null_pointer_constant.A()
|
|
|
|
if a._myA != None:
|
|
raise RuntimeError, ("cpp0x_null_pointer_constant: _myA should be None, but is ", a._myA)
|
|
|
|
b = cpp0x_null_pointer_constant.A()
|
|
if a._myA != b._myA:
|
|
raise RuntimeError, ("cpp0x_null_pointer_constant: a._myA should be the same as b._myA, but ", a._myA, "!=", b._myA)
|
|
|
|
a._myA = cpp0x_null_pointer_constant.A()
|
|
if a._myA == None:
|
|
raise RuntimeError, ("cpp0x_null_pointer_constant: _myA should be object, but is None")
|
|
|