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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
311c0f08
Commit
311c0f08
authored
Jan 20, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve test output in failure case
parent
617e50e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/run/builtin_abs.pyx
tests/run/builtin_abs.pyx
+6
-6
No files found.
tests/run/builtin_abs.pyx
View file @
311c0f08
...
...
@@ -40,9 +40,9 @@ def int_abs(int a):
True
>>> long_abs(-max_int-1) > 0
True
>>> int_abs(-max_int-1) == abs(-max_int-1)
>>> int_abs(-max_int-1) == abs(-max_int-1)
or (max_int, int_abs(-max_int-1), abs(-max_int-1))
True
>>> int_abs(max_int) == abs(max_int)
>>> int_abs(max_int) == abs(max_int)
or (max_int, int_abs(max_int), abs(max_int))
True
"""
return
abs
(
a
)
...
...
@@ -57,9 +57,9 @@ def long_abs(long a):
True
>>> long_abs(-max_long-1) > 0
True
>>> long_abs(-max_long-1) == abs(-max_long-1)
>>> long_abs(-max_long-1) == abs(-max_long-1)
or (max_long, long_abs(-max_long-1), abs(-max_long-1))
True
>>> long_abs(max_long) == abs(max_long)
>>> long_abs(max_long) == abs(max_long)
or (max_long, long_abs(max_long), abs(max_long))
True
"""
return
abs
(
a
)
...
...
@@ -70,9 +70,9 @@ def long_long_abs(long long a):
True
>>> long_long_abs(-max_long_long-1) > 0
True
>>> long_long_abs(-max_long_long-1) == abs(-max_long_long-1)
>>> long_long_abs(-max_long_long-1) == abs(-max_long_long-1)
or (max_long_long, long_long_abs(-max_long_long-1), abs(-max_long_long-1))
True
>>> long_long_abs(max_long_long) == abs(max_long_long)
>>> long_long_abs(max_long_long) == abs(max_long_long)
or (max_long_long, long_long_abs(max_long_long), abs(max_long_long))
True
"""
return
abs
(
a
)
...
...
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