aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-04-12py: Implement "from pkg import mod" variant of import.Paul Sokolovsky
2014-04-11py, compiler: Allow lambda's to yield.Damien George
2014-04-11py: Implement compiling of *-expr within parenthesis.Damien George
2014-04-11py: Check that sequence has 2 elements for dict iterable constructor.Damien George
2014-04-11objdict: Implement construction from iterable of pairs.Paul Sokolovsky
Pairs are limited to tuples so far.
2014-04-11objdict: Implement __getitem__ method.Paul Sokolovsky
2014-04-11modstruct: Basic implementation of native struct alignment and types.Paul Sokolovsky
2014-04-11modstruct: Refactor to support both LE and BE packed structs.Paul Sokolovsky
2014-04-10tests: Add test for multi-comparison.Damien George
2014-04-10objfun: Fix default arguments filling loop, was broken in presense of kwargs.Paul Sokolovsky
2014-04-10py: Start implementing "struct" module.Paul Sokolovsky
Only calcsize() and unpack() functions provided so far, for little-endian byte order. Format strings don't support repition spec (like "2b3i"). Unfortunately, dealing with all the various binary type sizes and alignments will lead to quite a bloated "binary" helper functions - if optimizing for speed. Need to think if using dynamic parametrized algos makes more sense.
2014-04-09Merge branch 'str-index' of github.com:xbe/micropython into xbe-str-indexDamien George
2014-04-09py: str.join can now take arbitrary iterable as argument.Damien George
2014-04-09py: Generators can have their locals closed over.Damien George
2014-04-09py: Properly implement deletion of locals and derefs, and detect errors.Damien George
Needed to reinstate 2 delete opcodes, to specifically check that a local is not deleted twice.
2014-04-09objint: Implement int.from_bytes() class method and .to_bytes() method.Paul Sokolovsky
These two are apprerently the most concise and efficient way to convert int to/from bytes in Python. The alternatives are struct and array modules, but methods using them are more verbose in Python code and less efficient in memory/cycles.
2014-04-08tests: Oops: fix del-attr.Damien George
2014-04-08py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR.Damien George
This makes the runtime and object APIs more consistent. mp_store_subscr functionality now moved into objects (ie list and dict store_item).
2014-04-08py: Make bytearray a proper type.Paul Sokolovsky
2014-04-08py: Implement str.[r]index() and add tests for them.xbe
2014-04-08Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-08py: implement UNPACK_EX byte code (for: a, *b, c = d)Damien George
2014-04-08bytearray: Support bytearray(int) constructor.Paul Sokolovsky
To create bytearray of given length.
2014-04-08Display \r and \t escape codes in string reprAndrew Scheller
2014-04-07Add string formatting support for longlong and mpz.Dave Hylands
2014-04-07Merge pull request #445 from lurch/test-sorted-setsDamien George
Modify set tests to print sorted sets directly
2014-04-07Modify set tests to print sorted sets directlyAndrew Scheller
instead of creating temporary lists and sorting those in-place
2014-04-07Add tests for sorted() functionAndrew Scheller
and check that sorted(list) produces same output as list.sort()
2014-04-07tests: Fix more tests which depend on order of elements in set.Paul Sokolovsky
2014-04-07tests: Fix few tests which depend on order of elements in set.Paul Sokolovsky
2014-04-07tests: Fix tests with sets to print sorted set.Damien George
2014-04-07py: Fix str.replace for case when arg 0 or 1 is empty string.Damien George
2014-04-06tests: Fix few tests which depend on order of elements in dict.Paul Sokolovsky
With dict being unordered of course.
2014-04-06tests/dict2.py: Add combined test for dict(dict) and dict equality.Paul Sokolovsky
2014-04-06py: Implement more features in native emitter.Damien George
On x64, native emitter now passes 70 of the tests.
2014-04-06py: str.split: handle non-default separator.Damien George
2014-04-05tests: Add test to check issue #429.Damien George
2014-04-05Merge pull request #435 from dhylands/str-modulo-floatDamien George
Allow floating point arguments with %d,i,u,o,x,X formats
2014-04-05Merge pull request #433 from pfalcon/getattr-3argDamien George
py: Support 3-arg getattr() builtin (with default value).
2014-04-05py: Fix delete operation on map/dict and set objects.Damien George
Hash table can now be completely full (ie now NULL entry) before a resize is triggered. Use sentinel value to indicate delete entry in the table.
2014-04-05Allow floating point arguments with %d,i,u,o,x,X formatsDave Hylands
2014-04-05tests: Add test for dict delete. It fails.Damien George
2014-04-05py: Support 3-arg getattr() builtin (with default value).Paul Sokolovsky
2014-04-05objtype: Add equality test for type types.Paul Sokolovsky
2014-04-05py: Allow types to be hashable.Paul Sokolovsky
Quite natural to have d[int] = handle_int .
2014-04-04run-tests: Elaborate python3 command override capabilities.Paul Sokolovsky
2014-04-04Merge pull request #422 from dhylands/str-moduloDamien George
Str modulo
2014-04-04tests: Make rge-sm.py use less memory (integration step increased).Damien George
In addition to memory allocation failure, other problem was that 10**17 was overflowing. Now passes.
2014-04-04py: Add m_malloc_fail function to handle memory allocation error.Damien George
A malloc/realloc fail now throws MemoryError.
2014-04-04tests/file-with: Add testcase which failed for @dpgeorge.Paul Sokolovsky
Works on x86.