Add new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12553 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6a4221ce6d
commit
247a179807
1 changed files with 27 additions and 0 deletions
|
|
@ -14,4 +14,31 @@ if globalchar_get() <> smallnum then swigtesterror(); end
|
|||
|
||||
if globalconstchar_get() <> -110 then swigtesterror(); end
|
||||
|
||||
try
|
||||
directorTest = new_DirectorTest();
|
||||
catch
|
||||
swigtesterror();
|
||||
end
|
||||
|
||||
if DirectorTest_CharValFunction(directorTest, smallnum) <> smallnum then swigtesterror(); end
|
||||
if DirectorTest_CCharValFunction(directorTest, smallnum) <> smallnum then swigtesterror(); end
|
||||
if DirectorTest_CCharRefFunction(directorTest, smallnum) <> smallnum then swigtesterror(); end
|
||||
|
||||
// TODO Too long identifiers
|
||||
//if DirectorTest_memberchar_get(directorTest) <> -111 then swigtesterror(); end
|
||||
//try
|
||||
// DirectorTest_memberchar_set(directorTest, smallnum)
|
||||
//catch
|
||||
// swigtesterror();
|
||||
//end
|
||||
//if DirectorTest_memberchar_get(directorTest) <> smallnum then swigtesterror(); end
|
||||
|
||||
//if DirectorTest_memberconstchar_get(directorTest) <> -112 then swigtesterror(); end
|
||||
|
||||
try
|
||||
delete_DirectorTest(directorTest);
|
||||
catch
|
||||
swigtesterror();
|
||||
end
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue