Author: Carl Friedrich Bolz-Tereick <cfb...@gmx.de> Branch: Changeset: r93745:25474c7af9f3 Date: 2018-02-04 12:08 +0100 http://bitbucket.org/pypy/pypy/changeset/25474c7af9f3/
Log: tests for rbigint.ne diff --git a/rpython/rlib/test/test_rbigint.py b/rpython/rlib/test/test_rbigint.py --- a/rpython/rlib/test/test_rbigint.py +++ b/rpython/rlib/test/test_rbigint.py @@ -141,6 +141,7 @@ r2 = op1 ** op2 assert r1.tolong() == r2 + def test_touint(self): result = r_uint(sys.maxint + 42) rl = rbigint.fromint(sys.maxint).add(rbigint.fromint(42)) @@ -358,7 +359,7 @@ null = rbigint.fromfloat(-0.0) assert null.int_eq(0) - def test_eq(self): + def test_eq_ne(self): x = 5858393919192332223L y = 585839391919233111223311112332L f1 = rbigint.fromlong(x) @@ -370,6 +371,12 @@ assert not f1.eq(f2) assert not f1.eq(f3) + assert not f1.ne(f1) + assert not f2.ne(f2) + assert not f3.ne(f3) + assert f1.ne(f2) + assert f1.ne(f3) + def test_eq_fastpath(self): x = 1234 y = 1234 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit