diff --git a/Examples/test-suite/inctest.i b/Examples/test-suite/inctest.i index 0b07eb345..50e15b0af 100644 --- a/Examples/test-suite/inctest.i +++ b/Examples/test-suite/inctest.i @@ -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" diff --git a/Examples/test-suite/python/inctest_runme.py b/Examples/test-suite/python/inctest_runme.py index 98cf9e4ff..e10f4544c 100644 --- a/Examples/test-suite/python/inctest_runme.py +++ b/Examples/test-suite/python/inctest_runme.py @@ -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 +