/trunk/Examples/test-suite/octave/inctest_runme.m
Objective C | 24 lines | 19 code | 5 blank | 0 comment | 3 complexity | 6858236432081a7231792759cc572e0d MD5 | raw file
1inctest 2 3try 4 a = inctest.A(); 5catch 6 error("didn't find A\ntherefore, I didn't include \ 7 'testdir/subdir1/hello.i'") 8end_try_catch 9 10try 11 b = inctest.B(); 12catch 13 error("didn't find B\ntherefore, I didn't include 'testdir/subdir2/hello.i'") 14end_try_catch 15 16# Check the import in subdirectory worked 17if (inctest.importtest1(5) != 15) 18 error("import test 1 failed") 19endif 20 21if (!strcmp(inctest.importtest2("black"),"white")) 22 error("import test 2 failed") 23endif 24