std::map C# improvements

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-05-26 17:08:53 +00:00
commit 25bcb4d5e6
3 changed files with 41 additions and 17 deletions

View file

@ -226,14 +226,14 @@ public class li_std_map_runme {
StructIntMap limap = new StructIntMap();
Struct s7 = new Struct(7);
Struct s8 = new Struct(8);
limap.set(s7 , 8);
if (limap.get(s7) != 8)
limap.setitem(s7 , 8);
if (limap.getitem(s7) != 8)
throw new Exception("Assignment test on non-specialized map failed");
if (!limap.has_key(s7))
if (!limap.ContainsKey(s7))
throw new Exception("Key test (1) on non-specialized map failed");
if (limap.has_key(s8))
if (limap.ContainsKey(s8))
throw new Exception("Key test (2) on non-specialized map failed");
}