summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
Commit message (Collapse)AuthorAge
* modstruct: Rename module to "ustruct", to allow full Python-level impl.Paul Sokolovsky2015-05-04
|
* py: Check that arg to object.__new__ is a user-defined type.Damien George2015-05-04
| | | | Addresses issue #1203.
* py: Support conversion of bignum to bytes.Damien George2015-04-25
| | | | | | | This gets int.to_bytes working for bignum, and also struct.pack with 'q' and 'Q' args on 32-bit machines. Addresses issue #1155.
* tests: Add tests for attrtuple, and for more corner cases.Damien George2015-04-22
|
* py: Fix builtin ord so that it can handle bytes values >= 0x80.Damien George2015-04-19
| | | | Addresses issue #1188.
* tests: Convert line endings in fun_name.py from CRLF to LF.Damien George2015-04-16
|
* objarray: Support assignment of bytes to bytearray slice.Paul Sokolovsky2015-04-16
|
* objstr: split(None): Fix whitespace properly.Paul Sokolovsky2015-04-12
|
* tests: Add some more tests to improve code coverage of corner cases.Damien George2015-04-05
|
* tests: Add tests to exercise lexer; and some more complex number tests.Damien George2015-04-04
|
* tests: Add missing tests for builtins, and many other things.Damien George2015-04-04
|
* tests: Add test for str.splitlines().Paul Sokolovsky2015-04-04
|
* tests/class_descriptor.py: Fix line-endings (were CRLF).Paul Sokolovsky2015-03-28
|
* py: Add optional support for descriptors' __get__ and __set__ methods.stijn2015-03-26
| | | | Disabled by default. Enabled on unix and windows ports.
* tests: Skip some new tests when testing native emitter.Damien George2015-03-25
|
* tests: Add tests for SyntaxError, TypeError, and other missing things.Damien George2015-03-25
| | | | This is intended to improve coverage of the test suite.
* py: Allow retrieving a function's __name__.stijn2015-03-20
| | | | Disabled by default. Enabled on unix and stmhal ports.
* tests: Add basic test for OrderedDict.Paul Sokolovsky2015-03-20
| | | | Mostly to have coverage of newly added code in map.c.
* py: Fix builtin abs so it works for bools and bignum.Damien George2015-03-14
|
* tests: Add some more tests for bytes, bignum, string and ujson.Damien George2015-03-14
|
* tests: Add tests for things that are not already tested.Damien George2015-03-12
| | | | The aim here is to improve coverage of the code.
* py: Add support for start/stop/step attributes of builtin range object.Peter D. Gray2015-03-11
|
* tests: Add tests for boundmeth; and bignum cmp, unary, float, error.Damien George2015-03-03
|
* tests: Add basics test for gc module.Damien George2015-03-02
|
* tests: Use range as iterable instead of list comprehension.Damien George2015-03-02
| | | | | So that navite emitter passes (comprehensions use yield which is not yet supported by native emitter).
* tests: Add tests for builtins: all, any, sum, abs.Damien George2015-03-02
|
* tests: Add tests for op special meths, ubinascii, complex.Damien George2015-03-02
|
* tests: Add test for array slice assignment.Paul Sokolovsky2015-02-27
|
* 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: Add setattr builtin.stijn2015-02-14
|
* 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.
* 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.
* 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: 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
|
* py: Fix comparison of minus-zero long int.Damien George2015-01-27
|
* py: Implement __reversed__ slot.Damien George2015-01-21
| | | | Addresses issue #1073.
* 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: 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
|
* objarray: Make sure that longint works as bytearray size.Paul Sokolovsky2015-01-04
|
* objstr: Implement kwargs support for str.format().Paul Sokolovsky2015-01-04
|
* py: Allow keyword arguments for namedtuplestijn2015-01-01
|
* py: Use sequence of strings for named tuple initializationstijn2015-01-01
| | | | | | - remove single string initialization style - take list of strings instead - store list in the type for fast lookup