PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Objective C | 106 lines | 80 code | 26 blank | 0 comment | 36 complexity | b817f01d9b3c55ebd7d7f65279e00464 MD5 | raw file
  1namespace_typemap
  2
  3if (!strcmp(stest1("hello"),"hello"))
  4    error
  5endif
  6
  7if (!strcmp(stest2("hello"),"hello"))
  8    error
  9endif
 10
 11if (!strcmp(stest3("hello"),"hello"))
 12    error
 13endif
 14
 15if (!strcmp(stest4("hello"),"hello"))
 16    error
 17endif
 18
 19if (!strcmp(stest5("hello"),"hello"))
 20    error
 21endif
 22
 23if (!strcmp(stest6("hello"),"hello"))
 24    error
 25endif
 26
 27if (!strcmp(stest7("hello"),"hello"))
 28    error
 29endif
 30
 31if (!strcmp(stest8("hello"),"hello"))
 32    error
 33endif
 34
 35if (!strcmp(stest9("hello"),"hello"))
 36    error
 37endif
 38
 39if (!strcmp(stest10("hello"),"hello"))
 40    error
 41endif
 42
 43if (!strcmp(stest11("hello"),"hello"))
 44    error
 45endif
 46
 47if (!strcmp(stest12("hello"),"hello"))
 48    error
 49endif
 50
 51c = complex(2,3);
 52r = real(c);
 53
 54if (ctest1(c) != r)
 55    error
 56endif
 57
 58if (ctest2(c) != r)
 59    error
 60endif
 61
 62if (ctest3(c) != r)
 63    error
 64endif
 65
 66if (ctest4(c) != r)
 67    error
 68endif
 69
 70if (ctest5(c) != r)
 71    error
 72endif
 73
 74if (ctest6(c) != r)
 75    error
 76endif
 77
 78if (ctest7(c) != r)
 79    error
 80endif
 81
 82if (ctest8(c) != r)
 83    error
 84endif
 85
 86if (ctest9(c) != r)
 87    error
 88endif
 89
 90if (ctest10(c) != r)
 91    error
 92endif
 93
 94if (ctest11(c) != r)
 95    error
 96endif
 97
 98if (ctest12(c) != r)
 99    error
100endif
101
102try
103    ttest1(-14)
104    error
105catch
106end_try_catch