/trunk/Examples/test-suite/octave/overload_extend_runme.m
MATLAB | 19 lines | 17 code | 2 blank | 0 comment | 5 complexity | f3f1695019e79571bced919cae44ae5e MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- overload_extend
- f = overload_extend.Foo();
- if (f.test() != 0)
- error
- endif
- if (f.test(3) != 1)
- error
- endif
- if (f.test("hello") != 2)
- error
- endif
- if (f.test(3,2) != 5)
- error
- endif
- if (f.test(3.1)-.1 != 1003) # :)
- error
- endif