aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-01-12Merge pull request #162 from chipaca/str_findDamien George
Implement a basic str.find; fixes #67
2014-01-12Merge pull request #160 from pfalcon/elaborate-intDamien George
Elaborate small-int/long-int
2014-01-12oops, nasty off-by-one in set_copyJohn R. Lenton
2014-01-12Implemented set binary ops.John R. Lenton
2014-01-12Implement a basic str.find; fixes #67John R. Lenton
2014-01-12Add proper checks for fits-in-small-int. Make it reusable.Paul Sokolovsky
We likely should make mp_obj_new_int() inline, and rely on its encapsulated check rather than inline checks everywhere explicitly. Also, parser for big small int values is still broken.
2014-01-12Implemented set.updateJohn R. Lenton
2014-01-12Implemented set.removeJohn R. Lenton
2014-01-12Implemented set.isdisjointJohn R. Lenton
2014-01-12Implemented set.intersection and set.intersection_updateJohn R. Lenton
2014-01-12Implemented set.difference and set.difference_updateJohn R. Lenton
2014-01-12Implemented set.discardJohn R. Lenton
2014-01-12Implemented set.copyJohn R. Lenton
2014-01-12Implemented set.clearJohn R. Lenton
2014-01-12Implemented set.addJohn R. Lenton
2014-01-12make sets iterableJohn R. Lenton
2014-01-12list: Implement comparison operators.Paul Sokolovsky
2014-01-12list: Add extend() methods and += operator.Paul Sokolovsky
2014-01-10Merge pull request #136 from pfalcon/for-range-downtoDamien George
compile_for_stmt_optimised_range(): Properly handle negative & unknown s...
2014-01-10Merge pull request #135 from pfalcon/simple-raiseDamien George
Crude attempt to implement RAISE_VARARGS (with args=1 so far only).
2014-01-10Merge pull request #134 from pfalcon/list-mulDamien George
list: Implement list multiplication.
2014-01-11compile_for_stmt_optimised_range(): Properly handle negative & unknown steps.Paul Sokolovsky
If step is not constant, in first approximation, we can't apply optimization, (well, we could, but need a special case for this).
2014-01-11Crude attempt to implement RAISE_VARARGS (with args=1 so far only).Paul Sokolovsky
2014-01-11list: Implement list multiplication.Paul Sokolovsky
2014-01-10Added dict.fromkeys. Are we done with dict and #99 yet? I do think we are.John R. Lenton
2014-01-10dict views now, refactoring later.John R. Lenton
2014-01-09Merge pull request #121 from pfalcon/count-testcasesDamien George
Count individual testcases when running tests.
2014-01-09py: Implement base class lookup, issubclass, isinstance.Damien George
2014-01-09Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George
Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
2014-01-08Count individual testcases when running tests.Paul Sokolovsky
The idea is simple: each print represents a testcase within a test unit. As we don't have strict rules on which/how many testcase are put into a test file, it's nice to have an idea how many *testcases* we have totally. Would be nice to count how many testcases pass/fail, but that's a bit less trivial.
2014-01-08Add string comparison tests.Paul Sokolovsky
Use computed string to exercise string interning code better.
2014-01-07Merge remote-tracking branch 'upstream/master' into dict_featsJohn R. Lenton
2014-01-07forgot to add test for dict.updateJohn R. Lenton
2014-01-07Added dict.setdefaultJohn R. Lenton
2014-01-07Added dict.popitemJohn R. Lenton
2014-01-07implemented dict.popJohn R. Lenton
2014-01-07Added dict.get.John R. Lenton
2014-01-07Added dict.copyJohn R. Lenton
2014-01-07Added dict.clear.John R. Lenton
Added 0 to the list of primes. Funky primes, these.
2014-01-07Added dict iterator.John R. Lenton
2014-01-05Merge remote-tracking branch 'upstream/master' into list_reverseJohn R. Lenton
2014-01-05Merge pull request #80 from xyb/striterDamien George
Implements str iterator
2014-01-05Fix qstr in objlist.c; add more tests for list.index.Damien George
list.index fails on an edge case.
2014-01-05Merge pull request #78 from chipaca/list_indexDamien George
Implements list.index. Fixes issue #57.
2014-01-05Add test for basic builtin types.Damien George
2014-01-05Implements str iteratorxyb
2014-01-05Merge remote-tracking branch 'upstream/master' into list_indexJohn R. Lenton
2014-01-04Merge pull request #70 from chipaca/list_countDamien George
Implements list.count. Fixes isue #55.
2014-01-04Unbreak string slice test by just switching to normal (not byte) strings.Paul Sokolovsky
2014-01-04tests/basics requires python3.3Paul Sokolovsky
tests/bytecode/run-tests already uses puthon3.3, so let's just use it here too. Fore reference, errors with python 3.2.3: File "tests/generator1.py", line 12 return None SyntaxError: 'return' with argument inside generator File "tests/list_clear.py", line 3, in <module> x.clear() AttributeError: 'list' object has no attribute 'clear' etc.