PageRenderTime 36ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1.3.35/Examples/contract/simple_c/runme1.py

#
Python | 17 lines | 10 code | 5 blank | 2 comment | 0 complexity | 12d9a48dea88541b59724e2eb76a7034 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import example
  2. # Call the Circle() function correctly
  3. x = 1;
  4. y = 1;
  5. r = 3;
  6. c = example.Circle(x, y, r)
  7. # test post-assertion
  8. x = 1;
  9. y = 1;
  10. r = 2;
  11. c = example.Circle(x, y, r)
  12. print "The return value of Circle(%d, %d, %d) is %d" % (x,y,r,c)