aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-03-22py: Make 'bytes' be a proper type, support standard constructor args.Paul Sokolovsky
2014-03-22objint_longlong: Add regression test for improper inplace op implementation.Paul Sokolovsky
2014-03-21Merge pull request #351 from xbe/str-partitionDamien George
Implement str.partition and add tests for it.
2014-03-21Implement str.rpartition and add tests for it.xbe
2014-03-21Implement str.partition and add tests for it.xbe
2014-03-20Rename test so that it doesn't clash with Python math module.Damien George
2014-03-20Added various simple functions to math module.Rachel Dowdall
2014-03-20py: Add mpz modulo operation.Damien George
2014-03-16Implement support for __str__ and __repr__ special methods in classes.Paul Sokolovsky
2014-03-13py: In string.count, handle case of zero-length needle.Damien George
2014-03-13Fix issues in str.count implementation.xbe
See pull request #343.
2014-03-12Implement str.count and add tests for it.xbe
Also modify mp_get_index to accept: 1. Indices that are or evaluate to a boolean. 2. Slice indices. Add tests for these two cases.
2014-03-12Add more tests for multi-precision integers.Damien George
2014-03-03py: Fix overriding of default arguments.Damien George
Addresses issue #327.
2014-03-03namedtuple: Inherit unary/binary ops from tuple base class.Paul Sokolovsky
2014-03-03Add basic collections.namedtuple implementation.Paul Sokolovsky
2014-03-01py: Implement bit-shift and not operations for mpz.Damien George
Implement not, shl and shr in mpz library. Add function to create mpzs on the stack, used for memory efficiency when rhs is a small int. Factor out code to parse base-prefix of number into a dedicated function.
2014-02-22Add basic super() test.Paul Sokolovsky
2014-02-22parse: Refactor parse node encoding to support full range of small ints.Paul Sokolovsky
Based on suggestion by @dpgeorge at https://github.com/micropython/micropython/pull/313
2014-02-20import: Implement "from pkg.mod import sym" syntax properly.Paul Sokolovsky
http://docs.python.org/3.3/library/functions.html#__import__ : "When the name variable is of the form package.module, normally, the top-level package (the name up till the first dot) is returned, not the module named by name. However, when a non-empty fromlist argument is given, the module named by name is returned."
2014-02-16Support passing positional args as keywords to bytecode functions.Paul Sokolovsky
For this, record argument names along with each bytecode function. The code still includes extensive debug logging support so far.
2014-02-16Rename fun-kwargs.py -> fun-kwvarargs.py to free up slot for simple kw test.Paul Sokolovsky
2014-02-16builtinimport: Get the basic (and only basic) package imports work.Paul Sokolovsky
2014-02-16py: Pass keyword arguments to byte code.Damien George
2014-02-16py: Implement *vargs support.Damien George
Addresses issue #295.
2014-02-15py: VM never throws an exception, instead returns a status and value.Damien George
Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc.
2014-02-15Add testcase for failing namespace switch throwing exception from a module.Paul Sokolovsky
Issue #290. This currently fails, to draw attention to the issue.
2014-02-14Add testcase for "from module import *".Paul Sokolovsky
2014-02-14Add testcase for "from module import sym".Paul Sokolovsky
2014-02-13Implement full arg handling for exec().Paul Sokolovsky
2014-02-11basics/enumerate.py: Don't turn enumerate test into heap test.Paul Sokolovsky
With range(10000), doesn't fit into 128K heap.
2014-02-10Merge pull request #267 from pfalcon/func-ret-annDamien George
Clean up handling of function return type annotation.
2014-02-10Factor out mp_seq_count_obj() and implement tuple.count().Paul Sokolovsky
2014-02-10Implement tuple.index().Paul Sokolovsky
2014-02-10Clean up handling of function return type annotation.Paul Sokolovsky
2014-02-08Implement tuple multiplication.Paul Sokolovsky
2014-02-08Implement tuple addition.Paul Sokolovsky
2014-02-08Implement tuple comparison.Paul Sokolovsky
2014-02-08io.File, socket types: Add fileno() method.Paul Sokolovsky
Implementation is duplicated, but tolerate this for now, because there's no clear idea how to de-dup it.
2014-02-06Add more finally + break/continue testcases.Paul Sokolovsky
2014-02-06Add additional testcase for finally/return.Paul Sokolovsky
2014-02-05py: Add built-in super.Damien George
2014-02-04Fix unstable case in builtin_id.py test.Paul Sokolovsky
2014-02-02Merge branch 'xbe-master'Damien George
2014-02-02Change id to return signed integer.Damien George
2014-02-02Implement str/bytes rich comparisons.Paul Sokolovsky
2014-02-01Implement and add tests for the id() builtin function.xbe
2014-02-02Implement slicing for tuples.Paul Sokolovsky
2014-02-02Implement slicing for lists.Paul Sokolovsky
2014-02-02Add testcase for sequence unpacking.Paul Sokolovsky