micropython/tests/basics
Damien George 5cd0b2227f tests: Split out those tests requiring float and import.
Tests in basics (which should probably be renamed to core) should not
rely on float, or import any non-built-in files.  This way these tests
can be run when those features are not available.

All test in basics now pass on the pyboard using stmhal port, except for
string-repr which has some issues with character hex printing.
2014-04-17 16:21:43 +01:00
..
0prelim.py
array1.py
break.py
builtin-bin.py py: Add builtin functions bin and oct, and some tests for them. 2014-04-15 22:03:55 +01:00
builtin-callable.py
builtin-hex.py py: Add builtin functions bin and oct, and some tests for them. 2014-04-15 22:03:55 +01:00
builtin-len1.py
builtin-oct.py py: Add builtin functions bin and oct, and some tests for them. 2014-04-15 22:03:55 +01:00
builtin_id.py Fix unstable case in builtin_id.py test. 2014-02-04 00:50:22 +02:00
bytearray1.py py: Make bytearray a proper type. 2014-04-08 22:11:40 +03:00
bytes.py py: Make 'bytes' be a proper type, support standard constructor args. 2014-03-22 00:07:04 +02:00
class-emptybases.py py: Factor out static/class method unwrapping code; add tests. 2014-04-02 14:13:26 +01:00
class-getattr.py py: Factor out static/class method unwrapping code; add tests. 2014-04-02 14:13:26 +01:00
class-staticclassmethod.py py: Factor out static/class method unwrapping code; add tests. 2014-04-02 14:13:26 +01:00
class-subclass-builtin.py
class-super.py Add basic super() test. 2014-02-22 20:25:05 +02:00
class1.py
class2.py
class3.py
class_inherit1.py
class_inherit_mul.py tests: Add testcase for multiple inheritance. 2014-03-31 19:46:35 +03:00
class_item.py py: Implement __delitem__ method for classes. 2014-04-15 01:30:25 +03:00
class_number.py
class_store.py
class_str.py Implement support for __str__ and __repr__ special methods in classes. 2014-03-16 15:18:22 +02:00
closure-defargs.py py: Factor out static/class method unwrapping code; add tests. 2014-04-02 14:13:26 +01:00
closure1.py
closure2.py
compare-multi.py tests: Add test for multi-comparison. 2014-04-10 17:29:51 +00:00
comprehension1.py
containment.py
continue.py
del-attr.py tests: Oops: fix del-attr. 2014-04-08 23:02:24 +01:00
del-deref.py py: Properly implement deletion of locals and derefs, and detect errors. 2014-04-09 15:26:46 +01:00
del-local.py py: Properly implement deletion of locals and derefs, and detect errors. 2014-04-09 15:26:46 +01:00
del-name.py py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR. 2014-04-08 21:32:29 +01:00
del-subscr.py py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR. 2014-04-08 21:32:29 +01:00
dict-del.py py: Fix delete operation on map/dict and set objects. 2014-04-05 17:17:19 +01:00
dict-from-iter.py py: Check that sequence has 2 elements for dict iterable constructor. 2014-04-11 09:13:30 +01:00
dict1.py
dict2.py objdict: Implement __getitem__ method. 2014-04-11 05:24:44 +03:00
dict_clear.py tests: Fix few tests which depend on order of elements in dict. 2014-04-06 21:31:42 +03:00
dict_copy.py
dict_fromkeys.py
dict_get.py
dict_iterator.py tests: Fix few tests which depend on order of elements in dict. 2014-04-06 21:31:42 +03:00
dict_pop.py
dict_popitem.py tests: Fix few tests which depend on order of elements in dict. 2014-04-06 21:31:42 +03:00
dict_setdefault.py
dict_update.py tests: Fix few tests which depend on order of elements in dict. 2014-04-06 21:31:42 +03:00
dict_views.py
enumerate.py basics/enumerate.py: Don't turn enumerate test into heap test. 2014-02-11 15:34:32 +02:00
equal.py py: Remove useless implementations of NOT_EQUAL in binary_op's. 2014-04-12 00:20:39 +01:00
eval1.py
exception1.py objexcept: Add "args" exception attribute, as well as StopIteration.value. 2014-03-25 01:42:01 +02:00
exceptpoly.py tests: Remove unimplemented exceptions from testing. 2014-03-29 11:43:00 +00:00
exec1.py Implement full arg handling for exec(). 2014-02-13 00:36:54 +02:00
filter.py
floordivide.py Fixed floor division on mp ints and small ints. Added a floordivide test case. 2014-03-22 20:19:24 +00:00
for1.py
for2.py py: Fix bug in optimised for .. range. 2014-03-31 18:02:22 +01:00
fun-annotations.py Clean up handling of function return type annotation. 2014-02-10 02:04:26 +02:00
fun-calldblstar.py py: Implement positional and keyword args via * and **. 2014-03-30 21:21:24 +01:00
fun-callstar.py tests: Remove print('flush') from 2 tests, since stmhal now works. 2014-04-17 00:14:05 +01:00
fun-callstardblstar.py py: Implement positional and keyword args via * and **. 2014-03-30 21:21:24 +01:00
fun-defargs.py tests: Remove print('flush') from 2 tests, since stmhal now works. 2014-04-17 00:14:05 +01:00
fun-defargs2.py objfun: Fix default arguments filling loop, was broken in presense of kwargs. 2014-04-10 05:39:38 +03:00
fun-kwargs.py Support passing positional args as keywords to bytecode functions. 2014-02-16 18:36:33 +02:00
fun-kwvarargs.py Rename fun-kwargs.py -> fun-kwvarargs.py to free up slot for simple kw test. 2014-02-16 15:55:06 +02:00
fun-varargs.py py: Implement *vargs support. 2014-02-16 00:01:29 +00:00
fun1.py
fun2.py
fun3.py
gen-yield-from-close.py tests: Add testcases for yield from. 2014-03-28 02:50:56 +02:00
gen-yield-from-ducktype.py py: Implement support for generalized generator protocol. 2014-03-30 23:30:16 +03:00
gen-yield-from-exc.py tests: Add testcases for yield from. 2014-03-28 02:50:56 +02:00
gen-yield-from-iter.py py: Implement support for generalized generator protocol. 2014-03-30 23:30:16 +03:00
gen-yield-from-send.py tests: Add testcases for yield from. 2014-03-28 02:50:56 +02:00
gen-yield-from-throw.py tests: Add testcases for yield from. 2014-03-28 02:50:56 +02:00
gen-yield-from.py tests: Add testcases for yield from. 2014-03-28 02:50:56 +02:00
generator-args.py objgenerator: Handle default args to generator functions. 2014-03-30 20:25:19 +03:00
generator-closure.py py: Generators can have their locals closed over. 2014-04-09 19:01:45 +01:00
generator-exc.py objgenerator: Implement .throw() method to throw exceptions into generator. 2014-03-22 17:55:42 +02:00
generator-return.py objgenerator: Implement return with value and .close() method. 2014-03-26 15:40:58 +02:00
generator1.py
generator2.py
generator_close.py objgenerator: Implement return with value and .close() method. 2014-03-26 15:40:58 +02:00
generator_send.py
getattr.py py: Implement __getattr__. 2014-03-31 22:57:56 +01:00
getattr1.py py: Support 3-arg getattr() builtin (with default value). 2014-04-05 13:34:02 +03:00
getitem.py
globals-del.py tests: Add test to check issue #429. 2014-04-05 18:17:51 +01:00
int-big-lshift.py Add more tests. 2014-04-02 14:23:04 +01:00
int-big-mod.py py: Add mpz modulo operation. 2014-03-20 16:28:41 +00:00
int-big-mul.py Add more tests for multi-precision integers. 2014-03-12 15:39:51 +00:00
int-bytes.py objint: Implement int.from_bytes() class method and .to_bytes() method. 2014-04-09 01:07:37 +03:00
int-divzero.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
int-long.py objint_longlong: Add regression test for improper inplace op implementation. 2014-03-22 00:04:04 +02:00
int-mpz.py py: Implement bit-shift and not operations for mpz. 2014-03-01 19:50:50 +00:00
int-small.py parse: Refactor parse node encoding to support full range of small ints. 2014-02-22 16:39:45 +02:00
int1.py
is-isnot.py
iter-of-iter.py tests: Fix tests with sets to print sorted set. 2014-04-07 00:42:09 +01:00
iter1.py py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 2014-03-26 19:27:58 +00:00
iter2.py py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 2014-03-26 19:27:58 +00:00
lambda1.py
list1.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
list_clear.py
list_compare.py
list_copy.py
list_count.py
list_index.py Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
list_insert.py
list_mult.py
list_pop.py
list_remove.py
list_reverse.py
list_slice.py Add more tests. 2014-04-02 14:23:04 +01:00
list_sort.py Add tests for sorted() function 2014-04-07 04:41:54 +01:00
list_sum.py
map.py
memoryerror.py run-tests can now skip certain tests when run under Travis CI 2014-04-16 03:28:40 +01:00
modulo.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
namedtuple1.py py: Rename collections module to _collections. 2014-04-13 10:24:00 +03:00
print.py py: Add support for sep and end keywords in print. 2014-04-02 10:34:44 +01:00
property.py tests: Add property test. 2014-04-13 19:00:27 +01:00
seq-unpack.py
set1.py tests: Fix tests with sets to print sorted set. 2014-04-07 00:42:09 +01:00
set_add.py Modify set tests to print sorted sets directly 2014-04-07 05:00:03 +01:00
set_binop.py Modify set tests to print sorted sets directly 2014-04-07 05:00:03 +01:00
set_clear.py
set_copy.py Modify set tests to print sorted sets directly 2014-04-07 05:00:03 +01:00
set_difference.py Modify set tests to print sorted sets directly 2014-04-07 05:00:03 +01:00
set_discard.py
set_intersection.py Modify set tests to print sorted sets directly 2014-04-07 05:00:03 +01:00
set_isdisjoint.py
set_isfooset.py
set_iter.py
set_pop.py
set_remove.py py: Fix delete operation on map/dict and set objects. 2014-04-05 17:17:19 +01:00
set_symmetric_difference.py Modify set tests to print sorted sets directly 2014-04-07 05:00:03 +01:00
set_union.py tests: Fix few tests which depend on order of elements in set. 2014-04-07 02:54:16 +03:00
set_update.py Modify set tests to print sorted sets directly 2014-04-07 05:00:03 +01:00
slots_bool_len.py
sorted.py
string-compare.py Implement str/bytes rich comparisons. 2014-02-02 08:58:16 +02:00
string-escape.py
string-format-modulo.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
string-format.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
string-join.py py: str.join can now take arbitrary iterable as argument. 2014-04-09 19:17:53 +01:00
string-repr.py Display \r and \t escape codes in string repr 2014-04-08 02:42:50 +01:00
string-slice.py
string1.py
string_count.py py: In string.count, handle case of zero-length needle. 2014-03-13 22:07:55 +00:00
string_find.py Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
string_index.py py: Implement str.[r]index() and add tests for them. 2014-04-08 11:51:41 -07:00
string_partition.py Implement str.partition and add tests for it. 2014-03-21 02:57:18 -07:00
string_replace.py py: Fix str.replace for case when arg 0 or 1 is empty string. 2014-04-07 00:39:13 +01:00
string_rfind.py Implement str.rfind() and add tests for it. 2014-03-24 01:00:00 -07:00
string_rindex.py py: Implement str.[r]index() and add tests for them. 2014-04-08 11:51:41 -07:00
string_rpartition.py Implement str.rpartition and add tests for it. 2014-03-21 02:58:09 -07:00
string_split.py py: str.split: handle non-default separator. 2014-04-06 11:11:15 +01:00
string_startswith.py
string_strip.py
struct1.py modstruct: Basic implementation of native struct alignment and types. 2014-04-11 03:59:16 +03:00
true-value.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
try-as-var.py py: Implement support for "except Exception as var" clause. 2014-03-23 22:00:04 +02:00
try-finally-loops.py Add more finally + break/continue testcases. 2014-02-06 03:27:39 +02:00
try-finally-return.py Add additional testcase for finally/return. 2014-02-06 03:20:56 +02:00
try-finally1.py
try-reraise.py py: Reraising exception possible only in except block. 2014-03-29 23:18:59 +02:00
try-reraise2.py Add "tracing" to try-reraise2.py test. It now fails. 2014-03-30 00:39:15 +00:00
try1.py
try2.py
try3.py
try4.py
tuple1.py Implement tuple addition. 2014-02-08 23:17:51 +02:00
tuple_compare.py Implement tuple comparison. 2014-02-08 22:56:36 +02:00
tuple_count.py Factor out mp_seq_count_obj() and implement tuple.count(). 2014-02-10 07:13:32 +02:00
tuple_index.py Implement tuple.index(). 2014-02-10 07:13:32 +02:00
tuple_mult.py Implement tuple multiplication. 2014-02-08 23:19:48 +02:00
types1.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
types2.py tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
unary_op.py
unboundlocal.py py: Make all LOAD_FAST ops check for unbound local. 2014-04-12 18:20:40 +01:00
unpack1.py py: implement UNPACK_EX byte code (for: a, *b, c = d) 2014-04-08 17:51:47 +01:00
while1.py
with-break.py tests: Add "with" statement testcases. 2014-03-29 04:39:31 +02:00
with-continue.py tests: Add "with" statement testcases. 2014-03-29 04:39:31 +02:00
with-return.py tests: Add "with" statement testcases. 2014-03-29 04:39:31 +02:00
with1.py tests: Make tests pass on pyboard. 2014-04-13 17:46:30 +01:00
zip.py