PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. overload_extend
  2. f = overload_extend.Foo();
  3. if (f.test() != 0)
  4. error
  5. endif
  6. if (f.test(3) != 1)
  7. error
  8. endif
  9. if (f.test("hello") != 2)
  10. error
  11. endif
  12. if (f.test(3,2) != 5)
  13. error
  14. endif
  15. if (f.test(3.1)-.1 != 1003) # :)
  16. error
  17. endif