Added test for %import
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ca64cfb093
commit
d71d6d1d85
2 changed files with 10 additions and 0 deletions
|
|
@ -11,5 +11,6 @@
|
|||
// including one. This is not right, it must include both,
|
||||
// as the well known compilers do.
|
||||
//
|
||||
// Also repeats the test for the import directive in subdirectories
|
||||
|
||||
%include "testdir/test.i"
|
||||
|
|
|
|||
|
|
@ -21,3 +21,12 @@ pass
|
|||
if error == 1:
|
||||
raise RuntimeError
|
||||
|
||||
# Check the import in subdirectory worked
|
||||
if inctest.importtest1(5) != 15:
|
||||
print "import test 1 failed"
|
||||
raise RuntimeError
|
||||
|
||||
if inctest.importtest2("black") != "white":
|
||||
print "import test 2 failed"
|
||||
raise RuntimeError
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue