[pypy-svn] pypy arm-backed-float: Add test case for casting a negative number to a float

bivab commits-noreply at bitbucket.org
Wed Feb 2 13:49:42 CET 2011


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backed-float
Changeset: r41543:45e0d4ab7b4a
Date: 2011-01-18 18:07 +0100
http://bitbucket.org/pypy/pypy/changeset/45e0d4ab7b4a/

Log:	Add test case for casting a negative number to a float

diff --git a/pypy/jit/metainterp/test/test_executor.py b/pypy/jit/metainterp/test/test_executor.py
--- a/pypy/jit/metainterp/test/test_executor.py
+++ b/pypy/jit/metainterp/test/test_executor.py
@@ -277,6 +277,7 @@
     yield (rop.CAST_FLOAT_TO_INT, [-5.9], 'int', -5)
     yield (rop.CAST_FLOAT_TO_INT, [5.9], 'int', 5)
     yield (rop.CAST_INT_TO_FLOAT, [123], 'float', 123.0)
+    yield (rop.CAST_INT_TO_FLOAT, [-123], 'float', -123.0)
 
 def get_float_tests(cpu):
     if not cpu.supports_floats:


More information about the Pypy-commit mailing list