/trunk/Examples/test-suite/octave/inctest_runme.m

# · MATLAB · 24 lines · 19 code · 5 blank · 0 comment · 4 complexity · 6858236432081a7231792759cc572e0d MD5 · raw file

  1. inctest
  2. try
  3. a = inctest.A();
  4. catch
  5. error("didn't find A\ntherefore, I didn't include \
  6. 'testdir/subdir1/hello.i'")
  7. end_try_catch
  8. try
  9. b = inctest.B();
  10. catch
  11. error("didn't find B\ntherefore, I didn't include 'testdir/subdir2/hello.i'")
  12. end_try_catch
  13. # Check the import in subdirectory worked
  14. if (inctest.importtest1(5) != 15)
  15. error("import test 1 failed")
  16. endif
  17. if (!strcmp(inctest.importtest2("black"),"white"))
  18. error("import test 2 failed")
  19. endif