[pypy-svn] r69905 - pypy/trunk/pypy/jit/metainterp/test
arigo at codespeak.net
arigo at codespeak.net
Fri Dec 4 20:54:50 CET 2009
Author: arigo
Date: Fri Dec 4 20:54:50 2009
New Revision: 69905
Modified:
pypy/trunk/pypy/jit/metainterp/test/test_float.py
Log:
For completion, a test about float_neg in addition to float_abs.
Modified: pypy/trunk/pypy/jit/metainterp/test/test_float.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/test/test_float.py (original)
+++ pypy/trunk/pypy/jit/metainterp/test/test_float.py Fri Dec 4 20:54:50 2009
@@ -27,6 +27,15 @@
res = self.interp_operations(f, [x])
assert res == x
+ def test_neg(self):
+ def f(a):
+ return -a
+ res = self.interp_operations(f, [-5.25])
+ assert res == 5.25
+ x = 281474976710656.31
+ res = self.interp_operations(f, [x])
+ assert res == -x
+
class TestOOtype(FloatTests, OOJitMixin):
pass
More information about the Pypy-commit
mailing list