micropython/tests/misc
Damien George 22b2265053 py/parse: Improve constant folding to operate on small and big ints.
Constant folding in the parser can now operate on big ints, whatever
their representation.  This is now possible because the parser can create
parse nodes holding arbitrary objects.  For the case of small ints the
folding is still efficient in RAM because the folded small int is stored
inplace in the parse node.

Adds 48 bytes to code size on Thumb2 architecture.  Helps reduce heap
usage because more constants can be computed at compile time, leading to
a smaller parse tree, and most importantly means that the constants don't
have to be computed at runtime (perhaps more than once).  Parser will now
be a little slower when folding due to calls to runtime to do the
arithmetic.
2016-01-07 14:40:35 +00:00
..
features.py tests: Adapt misc/features.py tests for ports without floating point. 2015-06-24 17:53:29 +01:00
non_compliant.py py/parse: Improve constant folding to operate on small and big ints. 2016-01-07 14:40:35 +00:00
non_compliant.py.exp py/mpz: Raise NotImplError instead of failing assertion. 2015-10-01 17:57:36 +01:00
non_compliant_lexer.py py/lexer: Raise NotImplError for unicode name escape, instead of assert. 2015-09-07 17:08:49 +01:00
non_compliant_lexer.py.exp py/lexer: Raise NotImplError for unicode name escape, instead of assert. 2015-09-07 17:08:49 +01:00
print_exception.py tests: Allow tests to pass against CPython 3.5. 2015-10-02 13:01:47 +01:00
recursion.py tests: Add test for catching infinite function recursion. 2014-06-27 00:03:56 +03:00
recursive_data.py tests: Activate recursive_data.py test, now that io.StringIO is available. 2014-12-12 00:58:07 +02:00
recursive_data.py.exp tests: Activate recursive_data.py test, now that io.StringIO is available. 2014-12-12 00:58:07 +02:00
recursive_iternext.py tests: Add test for recursive iternext stack overflow. 2015-06-03 22:41:06 +01:00
recursive_iternext.py.exp tests: Add test for recursive iternext stack overflow. 2015-06-03 22:41:06 +01:00
rge_sm.py tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm. 2014-09-06 18:38:55 +01:00
sys_exc_info.py vm: On exiting except block, clear sys.exc_info() value. 2015-04-26 01:40:37 +03:00