PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 17 lines | 11 code | 6 blank | 0 comment | 4 complexity | 1f571eebd8da13ec558146873218ad97 MD5 | raw file
 1from default_arg_values import *
 2
 3d = Display()
 4
 5if d.draw1() != 0:
 6  raise RuntimeError
 7
 8if d.draw1(12) != 12:
 9  raise RuntimeError
10
11p = createPtr(123);
12if d.draw2() != 0:
13  raise RuntimeError
14
15if d.draw2(p) != 123:
16  raise RuntimeError
17