PageRenderTime 37ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
MATLAB | 106 lines | 80 code | 26 blank | 0 comment | 25 complexity | b817f01d9b3c55ebd7d7f65279e00464 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. namespace_typemap
  2. if (!strcmp(stest1("hello"),"hello"))
  3. error
  4. endif
  5. if (!strcmp(stest2("hello"),"hello"))
  6. error
  7. endif
  8. if (!strcmp(stest3("hello"),"hello"))
  9. error
  10. endif
  11. if (!strcmp(stest4("hello"),"hello"))
  12. error
  13. endif
  14. if (!strcmp(stest5("hello"),"hello"))
  15. error
  16. endif
  17. if (!strcmp(stest6("hello"),"hello"))
  18. error
  19. endif
  20. if (!strcmp(stest7("hello"),"hello"))
  21. error
  22. endif
  23. if (!strcmp(stest8("hello"),"hello"))
  24. error
  25. endif
  26. if (!strcmp(stest9("hello"),"hello"))
  27. error
  28. endif
  29. if (!strcmp(stest10("hello"),"hello"))
  30. error
  31. endif
  32. if (!strcmp(stest11("hello"),"hello"))
  33. error
  34. endif
  35. if (!strcmp(stest12("hello"),"hello"))
  36. error
  37. endif
  38. c = complex(2,3);
  39. r = real(c);
  40. if (ctest1(c) != r)
  41. error
  42. endif
  43. if (ctest2(c) != r)
  44. error
  45. endif
  46. if (ctest3(c) != r)
  47. error
  48. endif
  49. if (ctest4(c) != r)
  50. error
  51. endif
  52. if (ctest5(c) != r)
  53. error
  54. endif
  55. if (ctest6(c) != r)
  56. error
  57. endif
  58. if (ctest7(c) != r)
  59. error
  60. endif
  61. if (ctest8(c) != r)
  62. error
  63. endif
  64. if (ctest9(c) != r)
  65. error
  66. endif
  67. if (ctest10(c) != r)
  68. error
  69. endif
  70. if (ctest11(c) != r)
  71. error
  72. endif
  73. if (ctest12(c) != r)
  74. error
  75. endif
  76. try
  77. ttest1(-14)
  78. error
  79. catch
  80. end_try_catch