summaryrefslogtreecommitdiffstatshomepage
path: root/tests
Commit message (Collapse)AuthorAge
* tests: Add test for array slice assignment.Paul Sokolovsky2015-02-27
|
* tests: Update pyb/uart.py test since baudrate of 1200 is too low.Damien George2015-02-27
|
* py: Fix adding of traceback so that it appends to existing info.Damien George2015-02-27
| | | | | | | | This makes exception traceback info self contained (ie doesn't rely on list object, which was a bit of a hack), reduces code size, and reduces RAM footprint of exception by eliminating the list object. Addresses part of issue #1126.
* tests: Add more tests for pyb.Timer class.Damien George2015-02-23
|
* tests: Add test for math special functions.Damien George2015-02-22
|
* tests: Add tests for ure groups and named char classes.Damien George2015-02-21
| | | | Issue #1122 should now be fixed.
* run-tests-exp.sh: Typo fix in comment.Paul Sokolovsky2015-02-21
|
* py: Implement bl/bx instructions for inline Thumb assembler.Damien George2015-02-16
|
* tests: Add another testcase for relative imports.Paul Sokolovsky2015-02-16
|
* stmhal: Add support for CAN rx callbacks.Henrik Sölver2015-02-15
|
* tests: Remove obsolete test; don't use fp in micropython/ tests.Damien George2015-02-15
|
* py: Simplify and remove redundant code for __iter__ method lookup.Damien George2015-02-15
|
* py: Fix loading of immediate pointer in Thumb assembler.Damien George2015-02-15
| | | | Addresses issue #1117.
* py: Add setattr builtin.stijn2015-02-14
|
* stmhal: Add uart.sendbreak() method, to send a break condition.Damien George2015-02-13
|
* py: Implement clz and rbit for inline Thumb assembler.Damien George2015-02-13
|
* py: Implement sdiv/udiv for inline Thumb assembler.Damien George2015-02-13
|
* py: Implement push/pop for inline Thumb assembler.Damien George2015-02-13
|
* py: Allow subclass of native object to delegate to the native buffer_p.Damien George2015-02-09
| | | | Addresses issue #1109.
* objstr: Fix bytes creation from array of long ints.Paul Sokolovsky2015-02-09
|
* py: Parse big-int/float/imag constants directly in parser.Damien George2015-02-08
| | | | | | | | | Previous to this patch, a big-int, float or imag constant was interned (made into a qstr) and then parsed at runtime to create an object each time it was needed. This is wasteful in RAM and not efficient. Now, these constants are parsed straight away in the parser and turned into objects. This allows constants with large numbers of digits (so addresses issue #1103) and takes us a step closer to #722.
* extmod: Make ujson.loads raise exception if given empty string.Damien George2015-02-02
| | | | Addresses issue #1097.
* tests: Disable float/cmath_fun.py for native emitter.Damien George2015-02-02
|
* py: Make list.sort keep stack usage within O(log(N)) bound.Damien George2015-02-02
| | | | | | | Also fix list.sort so it works with user-defined types, and parse the keyword arguments properly. Addresses issue #338.
* tests: Add test for cmath module.Damien George2015-02-02
|
* py: Convert CR to LF and CR LF to LF in lexer.Damien George2015-01-30
| | | | | Only noticeable difference is how newlines are encoded in triple-quoted strings. The behaviour now matches CPython3.
* tests: Add some tests to improve coverage.Damien George2015-01-29
|
* tests: Make float/int_power.py pass on pyboard/single prec float.Damien George2015-01-29
|
* tests: Add some tests to improve coverage.Damien George2015-01-29
| | | | | Used gcov to find some parts of vm.c, runtime.c, obj.c that were not covered by any tests. Still need to use gcov more thoroughly.
* tests: Add testcase for bytes() on values in range 128-255.Paul Sokolovsky2015-01-28
|
* moduzlib: Implement raw DEFLATE decoding support.Paul Sokolovsky2015-01-28
|
* py: Add support for floats in mp_binary_{get,set}_val()David Steinberg2015-01-27
| | | | - This then provides support for floats in the struct package
* py: Fix comparison of minus-zero long int.Damien George2015-01-27
|
* tests: Update float2int tests for new range classificationsDavid Steinberg2015-01-24
| | | | | - Tests vary based on build configuration (32/64-bit and internal int type). - Added tests for exceptions raised on overflow of int type.
* tests: Fix typo in file_long_read3.py.Paul Sokolovsky2015-01-23
|
* modujson: .loads(): Handle more whitespace characters.Paul Sokolovsky2015-01-23
|
* tests: Add extra test for reading multiple of internal chunk size.Paul Sokolovsky2015-01-23
|
* tests: Add testcase for reading amounts bigger than buffer/chunk size.Paul Sokolovsky2015-01-23
|
* lib/libm: Add frexp and modf functions; use in stmhal; add tests.Damien George2015-01-22
| | | | Addresses issue #1081.
* py: Implement proper re-raising in native codegen's finally handler.Damien George2015-01-21
| | | | | This allows an exception to propagate correctly through a finally handler.
* py: Implement __reversed__ slot.Damien George2015-01-21
| | | | Addresses issue #1073.
* py: Prevent segfault for operations on closed StringIO.stijn2015-01-20
| | | | Addresses issue #1067.
* py: Reluctantly add an extra pass to bytecode compiler.Damien George2015-01-14
| | | | | | | | | | | | | | | Bytecode also needs a pass to compute the stack size. This is because the state size of the bytecode function is encoded as a variable uint, so we must know the value of this uint before we encode it (otherwise the size of the generated code changes from one pass to the next). Having an entire pass for this seems wasteful (in time). Alternative is to allocate fixed space for the state size (would need 3-4 bytes to be general, when 1 byte is usually sufficient) which uses a bit of extra RAM per bytecode function, and makes the code less elegant in places where this uint is encoded/decoded. So, for now, opt for an extra pass.
* py: Never intern data of large string/bytes object; add relevant tests.Damien George2015-01-13
| | | | | | | | | | Previously to this patch all constant string/bytes objects were interned by the compiler, and this lead to crashes when the qstr was too long (noticeable now that qstr length storage defaults to 1 byte). With this patch, long string/bytes objects are never interned, and are referenced directly as constant objects within generated code using load_const_obj.
* py: Implement fallback for equality check for all types.Damien George2015-01-11
| | | | | Return "not equal" for objects that don't implement equality check. This is as per Python specs.
* tests: Make ffi_callback.py be able to run on uclibc and macosx.Paul Sokolovsky2015-01-10
| | | | Similar to ffi_float.py.
* tests: Add test for when instance member overrides class member.Damien George2015-01-08
|
* tests: Separate out test cases that rely on float support to float/ dir.Damien George2015-01-08
|
* py: Temporary fix for conversion of float to int when fits in small int.Damien George2015-01-07
| | | | Addresses issue #1044 (see also #1040). Could do with a better fix.
* objarray: Make sure that longint works as bytearray size.Paul Sokolovsky2015-01-04
|