Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
b6d79eae
Commit
b6d79eae
authored
Jan 06, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended test case
parent
821bc179
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests/run/powop.pyx
tests/run/powop.pyx
+12
-0
No files found.
tests/run/powop.pyx
View file @
b6d79eae
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment