summaryrefslogtreecommitdiff
path: root/Examples/contract/simple_c/runme1.py
blob: abd8df62fccff148e984207fe443eb82a59d3469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import example 
# Call the Circle() function correctly

x = 1;
y = 1;
r = 3;

c = example.Circle(x, y, r)

# test post-assertion
x = 1;
y = 1;
r = 2;

c = example.Circle(x, y, r)

print "The return value of Circle(%d, %d, %d) is %d" % (x,y,r,c)