Commit b6d79eae authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 821bc179
...@@ -2,6 +2,12 @@ __doc__ = """ ...@@ -2,6 +2,12 @@ __doc__ = """
>>> f(1.0, 2.95)[0] == f(1.0, 2.95)[1] >>> f(1.0, 2.95)[0] == f(1.0, 2.95)[1]
True True
>>> g(4)
1024
>>> h(4)
625
>>> constant_py() == 2L ** 10 >>> constant_py() == 2L ** 10
True True
...@@ -17,6 +23,12 @@ def f(obj2, obj3): ...@@ -17,6 +23,12 @@ def f(obj2, obj3):
obj1 = obj2 ** obj3 obj1 = obj2 ** obj3
return flt1, obj1 return flt1, obj1
def g(i):
return i ** 5
def h(i):
return 5 ** i
def constant_py(): def constant_py():
result = 2L ** 10 result = 2L ** 10
return result return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment