/trunk/Examples/test-suite/python/virtual_derivation_runme.py

# · Python · 8 lines · 4 code · 1 blank · 3 comment · 1 complexity · 343ccb27b33bb7ed98943cbd56a06dee MD5 · raw file

  1. from virtual_derivation import *
  2. #
  3. # very innocent example
  4. #
  5. b = B(3)
  6. if b.get_a() != b.get_b():
  7. raise RuntimeError, "something is really wrong"