[pypy-commit] pypy array-propagate-len: improve test

squeaky noreply at buildbot.pypy.org
Sat Feb 15 18:21:26 CET 2014


Author: Squeaky <squeaky_pl at gmx.com>
Branch: array-propagate-len
Changeset: r69162:6898ded0f2af
Date: 2014-02-15 13:42 +0100
http://bitbucket.org/pypy/pypy/changeset/6898ded0f2af/

Log:	improve test

diff --git a/rpython/jit/backend/llsupport/test/test_descr.py b/rpython/jit/backend/llsupport/test/test_descr.py
--- a/rpython/jit/backend/llsupport/test/test_descr.py
+++ b/rpython/jit/backend/llsupport/test/test_descr.py
@@ -435,12 +435,15 @@
 
 
 def test_descr_integer_bounded():
-    descr = FieldDescr('descr', 0, 1, FLAG_SIGNED)
+    descr = FieldDescr('descr', 0, symbolic.SIZEOF_CHAR, FLAG_SIGNED)
     assert descr.is_integer_bounded()
 
     descr = FieldDescr('descr', 0, symbolic.WORD, FLAG_UNSIGNED)
     assert not descr.is_integer_bounded()
 
+    descr = FieldDescr('descr', 0, symbolic.SIZEOF_FLOAT, FLAG_FLOAT)
+    assert not descr.is_integer_bounded()
+
 
 def test_descr_get_integer_bounds():
     descr = FieldDescr('decr', 0, 1, FLAG_UNSIGNED)


More information about the pypy-commit mailing list