PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 13 lines | 11 code | 2 blank | 0 comment | 2 complexity | 9879236b07c13b7be220c5aa8fd5a49a MD5 | raw file
 1from nested_workaround import *
 2
 3inner = Inner(5)
 4outer = Outer()
 5newInner = outer.doubleInnerValue(inner)
 6if newInner.getValue() != 10:
 7  raise RuntimeError
 8
 9outer = Outer()
10inner = outer.createInner(3)
11newInner = outer.doubleInnerValue(inner)
12if outer.getInnerValue(newInner) != 6:
13  raise RuntimeError