Author: stian
Branch: py3-bigint-to-int
Changeset: r96058:521850d02e44
Date: 2019-02-18 15:38 +0100
http://bitbucket.org/pypy/pypy/changeset/521850d02e44/
Log: Add tests for more ops
diff --git a/pypy/objspace/std/test/test_longobject.py
b/pypy/objspace/std/test/test_longobject.py
--- a/pypy/objspace/std/test/test_longobject.py
+++ b/pypy/objspace/std/test/test_longobject.py
@@ -49,11 +49,22 @@
modres = a._mod(self.space, b)
assert type(modres) is iobj.W_IntObject
+ # Covers all of descr_binop?
addres = a.descr_add(self.space, b)
assert type(addres) is iobj.W_IntObject
+ # Covers all of descr_rbinop?
+ raddres = a.descr_radd(self.space, b)
+ assert type(raddres) is iobj.W_IntObject
+
subres = a.descr_sub(self.space, b)
assert type(subres) is iobj.W_IntObject
+
+ lshiftres = a._lshift(self.space, b)
+ assert type(lshiftres) is iobj.W_IntObject
+
+ rshiftres = a._rshift(self.space, b)
+ assert type(rshiftres) is iobj.W_IntObject
class AppTestLong:
def w__long(self, obj):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit