[pypy-svn] r78668 - pypy/branch/smalllong/pypy/objspace/std/test
arigo at codespeak.net
arigo at codespeak.net
Wed Nov 3 14:49:18 CET 2010
Author: arigo
Date: Wed Nov 3 14:49:17 2010
New Revision: 78668
Modified:
pypy/branch/smalllong/pypy/objspace/std/test/test_smalllongobject.py
Log:
Add a (passing) test.
Modified: pypy/branch/smalllong/pypy/objspace/std/test/test_smalllongobject.py
==============================================================================
--- pypy/branch/smalllong/pypy/objspace/std/test/test_smalllongobject.py (original)
+++ pypy/branch/smalllong/pypy/objspace/std/test/test_smalllongobject.py Wed Nov 3 14:49:17 2010
@@ -34,6 +34,10 @@
space.lshift(w5, space.wrap(49)), w14000000000000)) is False
assert space.is_true(space.eq(
space.lshift(w5, space.wrap(50)), w14000000000000)) is True
+ #
+ w_huge = space.sub(space.lshift(w5, space.wrap(150)), space.wrap(1))
+ wx = space.and_(w14000000000000, w_huge)
+ assert space.is_true(space.eq(wx, w14000000000000))
class AppTestSmallLong(test_longobject.AppTestLong):
More information about the Pypy-commit
mailing list