summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float2int_fp30.py
Commit message (Collapse)AuthorAge
* tests/float2int*: Suffix with _intbig, don't run on any other int type.Paul Sokolovsky2017-03-06
| | | | | | I.e. they don't run successfully with MICROPY_LONGINT_IMPL_NONE and MICROPY_LONGINT_IMPL_LONGLONG (the problem is that they generate different output than CPython, TODO to fix that).
* float/float2int*: Make actually be parsable for MICROPY_LONGINT_IMPL_NONE.Paul Sokolovsky2017-03-06
| | | | | | | | | | | | The use of large literal numbers is a big no-no when it comes to writing programs which work with different int representations. Also, some checks are pretty adhoc (e.g using struct module to check for 64-bitness). This change bases entire detection on sys.maxsize and integer operarions, and thus more correct, even if longer. Note that this change doesn't mean that any of these tests can pass with anything but MPZ - even despite checking for various int representations, the tests aren't written to be portable among them.
* test/float2int_fp30: Variant of float2int for 30-bit stuffed float.Paul Sokolovsky2016-03-06