projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dd72bd
)
do not rely on floating point string representation in tests
author
Stefan Behnel
<scoder@users.berlios.de>
Mon, 9 Aug 2010 19:25:17 +0000
(21:25 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Mon, 9 Aug 2010 19:25:17 +0000
(21:25 +0200)
tests/run/r_addint.pyx
patch
|
blob
|
history
diff --git
a/tests/run/r_addint.pyx
b/tests/run/r_addint.pyx
index 098ef5b2810801513203a208e07cb5807666f230..4a724e22487e0398a17ecf47feac89d0c92cb1e1 100644
(file)
--- a/
tests/run/r_addint.pyx
+++ b/
tests/run/r_addint.pyx
@@
-4,8
+4,8
@@
__doc__ = u"""
>>> test(1, 2)
(1, 2, 3)
- >>> [
str(f) for f in test(17.3, 88.6
) ]
- ['17.
3', '88.6', '105.9
']
+ >>> [
repr(f) for f in test(17.25, 88.5
) ]
+ ['17.
25', '88.5', '105.75
']
>>> test(u'eggs', u'spam')
(u'eggs', u'spam', u'eggsspam')
"""