Author: Squeaky <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to