aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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.
2014-01-04Merge remote-tracking branch 'upstream/master' into list_countJohn R. Lenton
2014-01-04Merge pull request #64 from pfalcon/str-slice-range-checkDamien George
str slice: Trim slice indexes to be in range.
2014-01-04Merge pull request #60 from chipaca/list_copyDamien George
Implemented list.copy. Fixes issue #54.
2014-01-04Implements list.reverse; fixes issue #66John R. Lenton
2014-01-04Implements list.remove (in terms of list.index and list.pop).John R. Lenton
Fixes issue #63.
2014-01-04str slice: Trim slice indexes to be in range.Paul Sokolovsky
2014-01-04Merge remote-tracking branch 'upstream/master' into list_insertJohn R. Lenton
2014-01-04Merge remote-tracking branch 'upstream/master' into list_countJohn R. Lenton
2014-01-04Implements list.insert. Fixes issue #61.John R. Lenton
2014-01-04Fix int -> machine_int_t; add print to slice test.Damien George
2014-01-03Merge pull request #59 from pfalcon/sliceDamien George
Implement basic slice object and string slicing
2014-01-04Add test for byte string slicing.Paul Sokolovsky
2014-01-04Implements list.index. Fixes issue #57.John R. Lenton
2014-01-03Implemented list.countJohn R. Lenton
2014-01-03Implemented list.copy. Fixes issue #54.John R. Lenton
2014-01-03Added list.clear. Fixes issue #53.John R. Lenton
2014-01-03renamed some tests to have better names.John R. Lenton
2014-01-03Merge remote-tracking branch 'upstream/master'John R. Lenton
2014-01-03Worked on list.pop:John R. Lenton
* Fixes issue #51 * Adds a specific error message for when you try to pop an empty list. * Releases some memory if the list has shurnk a lot.
2014-01-03Merge pull request #43 from chipaca/masterDamien George
Implement list addition.
2014-01-03Basic implementation of import.Damien George
import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
2014-01-03Add list addition (fixes: #39)John R. Lenton
2014-01-02py: Fix generator where state array was incorrectly indexed.Damien George
Generator objects now allocate the object and the state in one malloc. This improvement fixes Issue #38.
2014-01-02Fix bash->/usr/bin/env bash; add LICENSE for Python library tests.Damien George