[pypy-svn] r47852 - pypy/dist/pypy/lang/smalltalk/test

lukas at codespeak.net lukas at codespeak.net
Wed Oct 24 18:54:56 CEST 2007


Author: lukas
Date: Wed Oct 24 18:54:56 2007
New Revision: 47852

Modified:
   pypy/dist/pypy/lang/smalltalk/test/test_primitives.py
Log:
(lr) some more bit shift tests


Modified: pypy/dist/pypy/lang/smalltalk/test/test_primitives.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/test/test_primitives.py	(original)
+++ pypy/dist/pypy/lang/smalltalk/test/test_primitives.py	Wed Oct 24 18:54:56 2007
@@ -113,6 +113,7 @@
     assert prim(p.BIT_SHIFT, [4, 1]).value == 8
     assert prim(p.BIT_SHIFT, [4, 2]).value == 16
     assert prim(p.BIT_SHIFT, [4, 3]).value == 32
+    assert prim(p.BIT_SHIFT, [4, 27]).value == 536870912
     
 def test_small_int_bit_shift_negative():
     assert prim(p.BIT_SHIFT, [-4, -3]).value == -1
@@ -122,6 +123,7 @@
     assert prim(p.BIT_SHIFT, [-4, 1]).value == -8
     assert prim(p.BIT_SHIFT, [-4, 2]).value == -16
     assert prim(p.BIT_SHIFT, [-4, 3]).value == -32
+    assert prim(p.BIT_SHIFT, [-4, 27]).value == -536870912
     
 def test_small_int_bit_shift_fail():
     prim_fails(p.BIT_SHIFT, [4, 32])



More information about the Pypy-commit mailing list