add test for assigment operator
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d4db912fa2
commit
4c80e1ea69
1 changed files with 2 additions and 0 deletions
|
|
@ -12,11 +12,13 @@ a=Op()
|
|||
b=Op(5)
|
||||
c=Op(b) -- copy construct
|
||||
d=Op(2)
|
||||
dd=d; -- assignment operator
|
||||
|
||||
-- test equality
|
||||
assert(a~=b)
|
||||
assert(b==c)
|
||||
assert(a~=d)
|
||||
assert(d==dd)
|
||||
|
||||
-- test <
|
||||
assert(a<b)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue