aboutsummaryrefslogtreecommitdiff
path: root/tests/basics/int_big_xor.py
AgeCommit message (Collapse)Author
2018-04-04tests/basics: Modify int-big tests to prevent constant folding.Damien George
So that these tests test the runtime behaviour, not the compiler (which may be executed offline).
2016-12-20tests/basics: Improve mpz test coverage.Rami Ali
2016-03-15tests: Split large tests into smaller files, to run with a small heap.Damien George
All tests in basics/ directory can now run and pass using 64-bit unix port with only a 16k heap (./run-tests --heapsize 16k). Tests in this directory should remain small so they can be used for ports with a small heap.
2016-02-03py/mpz: Complete implementation of mpz_{and,or,xor} for negative args.Doug Currie
For these 3 bitwise operations there are now fast functions for positive-only arguments, and general functions for arbitrary sign arguments (the fast functions are the existing implementation). By default the fast functions are not used (to save space) and instead the general functions are used for all operations. Enable MICROPY_OPT_MPZ_BITWISE to use the fast functions for positive arguments.
2015-11-22tests/int_big_*: Add more tests for result normalization.Paul Sokolovsky
Tested by comparability to small int/casting to bool.
2015-11-22tests/int_big_xor: Test that xor result is normalized.Paul Sokolovsky
And thus can be successfully used in comparisons, etc.
2015-03-14tests: Add some more tests for bytes, bignum, string and ujson.Damien George