swig/Examples/test-suite/octave/inctest_runme.m
Xavier Delacour 393391965c Initial commit of Octave module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-01 23:35:44 +00:00

24 lines
470 B
Mathematica

inctest
try
a = inctest.A();
catch
error("didn't find A\ntherefore, I didn't include \
'testdir/subdir1/hello.i'")
end_try_catch
try
b = inctest.B();
catch
error("didn't find B\ntherefore, I didn't include 'testdir/subdir2/hello.i'")
end_try_catch
# Check the import in subdirectory worked
if (inctest.importtest1(5) != 15)
error("import test 1 failed")
endif
if (!strcmp(inctest.importtest2("black"),"white"))
error("import test 2 failed")
endif