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

# · MATLAB · 9 lines · 8 code · 1 blank · 0 comment · 1 complexity · 9532b01e1bc1715f45f4bf8bba452d2a MD5 · raw file

  1. virtual_derivation
  2. #
  3. # very innocent example
  4. #
  5. b = B(3);
  6. if (b.get_a() != b.get_b())
  7. error("something is really wrong")
  8. endif