import source from 1.3.40
[external/swig.git] / Examples / test-suite / octave / inctest_runme.m
1 inctest
2
3 try
4   a = inctest.A();
5 catch
6   error("didn't find A\ntherefore, I didn't include \
7       'testdir/subdir1/hello.i'")
8 end_try_catch
9
10 try
11   b = inctest.B();
12 catch
13   error("didn't find B\ntherefore, I didn't include 'testdir/subdir2/hello.i'")
14 end_try_catch
15
16 # Check the import in subdirectory worked
17 if (inctest.importtest1(5) != 15)
18   error("import test 1 failed")
19 endif
20
21 if (!strcmp(inctest.importtest2("black"),"white"))
22   error("import test 2 failed")
23 endif
24