summaryrefslogtreecommitdiffstatshomepage
path: root/tests
Commit message (Collapse)AuthorAge
* vm: Add basic implementation of END_FINALLY opcode.Paul Sokolovsky2014-01-30
| | | | | | Allows to have nested try blocks with except filters. TODO: Don't add END_FINALLY's exception re-raise points to traceback.
* py: Improve __bool__ and __len__ dispatch; add slots for them.Damien George2014-01-30
|
* Implement __bool__ and __len__ via unary_op virtual method for all types.Paul Sokolovsky2014-01-30
| | | | | | | __bool__() and __len__() are just the same as __neg__() or __invert__(), and require efficient dispatching implementation (not requiring search/lookup). type->unary_op() is just the right choice for this short of adding standalone virtual method(s) to already big mp_obj_type_t structure.
* run-tests can handle segfault.Damien George2014-01-29
|
* Merge branch 'master' of github.com:msiemens/micropython into msiemens-masterDamien George2014-01-29
|\
| * Added Windows port (see #233)Markus Siemens2014-01-28
| |
* | Rename array test to array1 so it doesn't clash with array module.Damien George2014-01-28
| | | | | | | | On my machine, 'import array' in CPython tries to load the array test.
* | bytearray: Print objects properly.Paul Sokolovsky2014-01-28
| |
* | Add basic array.array test.Paul Sokolovsky2014-01-28
| |
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-27
|\|
| * long int: Implement more operations.Paul Sokolovsky2014-01-27
| |
| * gen.send(): Throw StopIteration. Also, explicitly shutdown finished gen.Paul Sokolovsky2014-01-27
| | | | | | | | | | Otherwise, some generator statements still may be spuriously executed on subsequent calls to next()/send().
* | py: Add unary op not for NoneType, bool, tuple, list, dict; fix for int.Damien George2014-01-27
|/
* Implement send() method for generators.Paul Sokolovsky2014-01-26
|
* py: Implement iterator support for object that has __getitem__.Damien George2014-01-25
| | | | Addresses Issue #203.
* Add basic implementation of bytes type, piggybacking on str.Paul Sokolovsky2014-01-24
| | | | | This reuses as much str implementation as possible, from this we can make them more separate as needed.
* mp_obj_is_callable(): Only object types can be callable.Paul Sokolovsky2014-01-23
| | | | Fixes segfault on callable("string").
* Implement simplest case of str.startswith().Paul Sokolovsky2014-01-23
|
* Implement octal and hex escapes in strings.Paul Sokolovsky2014-01-22
|
* py: Implement break and continue byte codes, and add tests.Damien George2014-01-21
| | | | | | | Also fixes a bug in the for-in-range optimiser. I hope to remove break and continue byte codes in the future and just use jump (if possible).
* Add bytearray basic tests.Paul Sokolovsky2014-01-21
|
* run-tests: Allow to run tests selectively via command line.Paul Sokolovsky2014-01-21
|
* Implement str.split(None).Paul Sokolovsky2014-01-21
| | | | Note that splitting by explicit string is not implemented so far.
* str: Implement proper string (instead of byte string) indexing.Paul Sokolovsky2014-01-21
| | | | Also, support negative indexes.
* Implement string multiplication.Paul Sokolovsky2014-01-21
|
* unix io.FileIO: Add iteration support.Paul Sokolovsky2014-01-20
| | | | | A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
* Rename unix binary to 'micropython'.Damien George2014-01-20
|
* unix: Implement sys.argv.Paul Sokolovsky2014-01-20
|
* Add README for tests/.Paul Sokolovsky2014-01-19
|
* Add directory for I/O tests with basic test for file methods.Paul Sokolovsky2014-01-19
|
* Move tests in basic/tests/ up one level preparating to multiple test dirs.Paul Sokolovsky2014-01-19
|
* Tiny optimisation in objlist.c; a new test for inheritance.Damien George2014-01-19
|
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-18
|\
| * Add testcase for subclassing builtin type and calling native method (broken).Paul Sokolovsky2014-01-18
| |
* | Improve method lookup in mp_obj_class_lookup.Damien George2014-01-18
|/ | | | Now searches both locals_dict and methods. Partly addresses Issue #145.
* Implement framework for class-defined built-in operators.Damien George2014-01-18
| | | | | Now working for class-defined methods: __getitem__, __setitem__, __add__, __sub__. Easy to add others.
* Add empty (false) value testing for strings, tuples, lists, dicts.Paul Sokolovsky2014-01-16
|
* str.format: Don't assume that '}' immediately follows '{', skip insides.Paul Sokolovsky2014-01-16
| | | | | That at least makes stuff like "{:x}".format(1) to produce not completely broken output.
* Merge branch 'str2int' of github.com:xyb/micropython into xyb-str2intDamien George2014-01-15
|\ | | | | | | | | | | | | Conflicts: py/objint.c unix-cpy/Makefile unix/Makefile
| * add more tests and remove debug codexyb2014-01-15
| |
| * int() test passedxyb2014-01-15
| |
| * Implemented int(str) in UNIXxyb2014-01-14
| |
* | Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George2014-01-15
|\ \ | | | | | | | | | | | | Conflicts: tests/basics/tests/exception1.py
| * | type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky2014-01-15
| | |
* | | Merge branch 'builtins' of github.com:chipaca/micropython into chipaca-builtinsDamien George2014-01-15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Added some checks for number of arguments. Conflicts: py/mpqstrraw.h
| * | | added filter()John R. Lenton2014-01-15
| | | |
| * | | Added mapJohn R. Lenton2014-01-15
| | | |
| * | | Merge remote-tracking branch 'upstream/master' into builtinsJohn R. Lenton2014-01-14
| |\| |
| * | | added enumerate()John R. Lenton2014-01-14
| | | |
* | | | Implement eval.Damien George2014-01-15
| | | |