/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
- namespace_typemap
- if (!strcmp(stest1("hello"),"hello"))
- error
- endif
- if (!strcmp(stest2("hello"),"hello"))
- error
- endif
- if (!strcmp(stest3("hello"),"hello"))
- error
- endif
- if (!strcmp(stest4("hello"),"hello"))
- error
- endif
- if (!strcmp(stest5("hello"),"hello"))
- error
- endif
- if (!strcmp(stest6("hello"),"hello"))
- error
- endif
- if (!strcmp(stest7("hello"),"hello"))
- error
- endif
- if (!strcmp(stest8("hello"),"hello"))
- error
- endif
- if (!strcmp(stest9("hello"),"hello"))
- error
- endif
- if (!strcmp(stest10("hello"),"hello"))
- error
- endif
- if (!strcmp(stest11("hello"),"hello"))
- error
- endif
- if (!strcmp(stest12("hello"),"hello"))
- error
- endif
- c = complex(2,3);
- r = real(c);
- if (ctest1(c) != r)
- error
- endif
- if (ctest2(c) != r)
- error
- endif
- if (ctest3(c) != r)
- error
- endif
- if (ctest4(c) != r)
- error
- endif
- if (ctest5(c) != r)
- error
- endif
- if (ctest6(c) != r)
- error
- endif
- if (ctest7(c) != r)
- error
- endif
- if (ctest8(c) != r)
- error
- endif
- if (ctest9(c) != r)
- error
- endif
- if (ctest10(c) != r)
- error
- endif
- if (ctest11(c) != r)
- error
- endif
- if (ctest12(c) != r)
- error
- endif
- try
- ttest1(-14)
- error
- catch
- end_try_catch