/trunk/Examples/test-suite/octave/smart_pointer_overload_runme.m
MATLAB | 27 lines | 21 code | 6 blank | 0 comment | 6 complexity | a8b269d0ea8d74d18e970a03a4fbef35 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- smart_pointer_overload
- f = Foo();
- b = Bar(f);
- if (f.test(3) != 1)
- error
- endif
- if (f.test(3.5) != 2)
- error
- endif
- if (f.test("hello") != 3)
- error
- endif
- if (b.test(3) != 1)
- error
- endif
- if (b.test(3.5) != 2)
- error
- endif
- if (b.test("hello") != 3)
- error
- endif