fix arrays_global and add more vector tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6146 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-08-25 05:36:02 +00:00
commit 5fe3427682
3 changed files with 10 additions and 2 deletions

View file

@ -27,9 +27,13 @@ if bv[0] != bv[2]:
b = B(5)
va = VecA([b,None,b,b])
if va[0].f(1) != 6:
raise RuntimeError,"bad std::vector<A*> mapping"
if vecAptr(va) != 6:
raise RuntimeError,"bad std::vector<A*> mapping"
b.val = 7
if va[3].f(1) != 8:
raise RuntimeError,"bad std::vector<A*> mapping"