aboutsummaryrefslogtreecommitdiff
path: root/tests/basics/int_constfolding.py
AgeCommit message (Collapse)Author
2020-05-03py/parse: Support constant folding of power operator for integers.Damien George
Constant expression like "2 ** 3" will now be folded, and the special form "X = const(2 ** 3)" will now compile because the argument to the const is now a constant. Fixes issue #5865.
2017-12-19tests: Add some more tests to improve coverage of py/parse.c.Damien George
2017-03-04tests/basic: Split tests into working with small ints and not working.Paul Sokolovsky
Tests which don't work with small ints are suffixed with _intbig.py. Some of these may still work with long long ints and need to be reclassified later.
2016-10-17tests: Improve coverage of array, range, dict, slice, exc, unicode.Damien George
2015-10-08py/compile: Fix edge case when constant-folding negation of integer.Damien George
Also adds tests specifically for testing constant folding.