micropython/tests/basics
Damien George 12c66be2b8 tests: Add some tests to improve coverage.
Used gcov to find some parts of vm.c, runtime.c, obj.c that were not
covered by any tests.  Still need to use gcov more thoroughly.
2015-01-29 00:44:11 +00:00
..
0prelim.py
andor.py py: Fix 2 bugs in native emitter: jump_or_pop and stack settling. 2014-08-29 20:05:32 +01:00
array1.py
array_add.py py: Implement +, += and .extend for bytearray and array objs. 2014-11-30 00:00:55 +00:00
array_construct.py tests: Separate out test cases that rely on float support to float/ dir. 2015-01-08 15:41:37 +00:00
break.py
builtin_bin.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
builtin_callable.py py: Fix builtin callable so it checks user-defined instances correctly. 2014-11-03 16:09:39 +00:00
builtin_compile.py tests: Get builtin_compile to skin properly on pyboard. 2014-10-26 15:38:28 +00:00
builtin_eval.py py: Make compiler return a proper exception on SyntaxError. 2014-10-05 19:01:34 +01:00
builtin_eval_error.py py: Make compiler return a proper exception on SyntaxError. 2014-10-05 19:01:34 +01:00
builtin_hash.py tests: Add some tests to improve coverage. 2015-01-29 00:44:11 +00:00
builtin_hex.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
builtin_id.py
builtin_len1.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
builtin_minmax.py py: Consolidate min/max functions into one, and add key= argument. 2014-08-24 19:14:09 +01:00
builtin_oct.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
builtin_override.py py: Allow builtins to be overridden. 2014-12-09 16:19:48 +00:00
builtin_range.py py: Improve range: add len, subscr, proper print. 2014-08-12 19:41:18 +01:00
builtin_reversed.py py: Implement __reversed__ slot. 2015-01-21 00:19:42 +00:00
builtin_round.py tests: Split out float test from builtin_round.py. 2014-11-29 14:47:54 +00:00
bytearray1.py objstr: Allow to convert any buffer proto object to str. 2014-10-31 00:03:53 +02:00
bytearray_add.py py: Implement +, += and .extend for bytearray and array objs. 2014-11-30 00:00:55 +00:00
bytearray_construct.py tests: Separate out test cases that rely on float support to float/ dir. 2015-01-08 15:41:37 +00:00
bytearray_longint.py objarray: Make sure that longint works as bytearray size. 2015-01-04 17:19:16 +02:00
bytes.py tests: Add testcase for bytes() on values in range 128-255. 2015-01-28 22:29:51 +02:00
bytes_add.py py: Allow +, in, and compare ops between bytes and bytearray/array. 2014-11-05 16:30:34 +00:00
bytes_compare.py sequence: Fix yet another case of improper sequence comparison. 2014-05-15 19:09:06 +03:00
bytes_compare2.py py: Allow +, in, and compare ops between bytes and bytearray/array. 2014-11-05 16:30:34 +00:00
bytes_construct.py tests: Separate out test cases that rely on float support to float/ dir. 2015-01-08 15:41:37 +00:00
bytes_count.py py: Make bytes objs work with more str methods; add tests. 2014-12-24 20:28:30 +00:00
bytes_find.py py: Make bytes objs work with more str methods; add tests. 2014-12-24 20:28:30 +00:00
bytes_gen.py tests: Fix uctypes tests to run on 64bit arch; enable more native tests. 2014-09-23 14:15:45 +00:00
bytes_large.py py: Never intern data of large string/bytes object; add relevant tests. 2015-01-13 16:21:23 +00:00
bytes_mult.py py: Fix mult by negative number of tuple, list, str, bytes. 2014-08-13 13:22:24 +01:00
bytes_partition.py py: Make bytes objs work with more str methods; add tests. 2014-12-24 20:28:30 +00:00
bytes_replace.py py: Make bytes objs work with more str methods; add tests. 2014-12-24 20:28:30 +00:00
bytes_split.py py: Make bytes objs work with more str methods; add tests. 2014-12-24 20:28:30 +00:00
bytes_strip.py py: Make bytes objs work with more str methods; add tests. 2014-12-24 20:28:30 +00:00
class1.py
class2.py
class3.py
class_binop.py py: Add dispatch for user defined ==, >, <=, >=. 2014-08-26 09:31:26 +01:00
class_call.py py: Support instance __call__ method. 2014-04-25 21:17:42 +03:00
class_contains.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
class_emptybases.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
class_getattr.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
class_inherit1.py
class_inherit_mul.py
class_instance_override.py tests: Add test for when instance member overrides class member. 2015-01-08 17:48:44 +00:00
class_item.py py: Implement __delitem__ method for classes. 2014-04-15 01:30:25 +03:00
class_new.py py: Automatically ake __new__ a staticmethod. 2014-07-05 05:55:00 +01:00
class_number.py
class_staticclassmethod.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
class_store.py
class_store_class.py py: Use sequence of strings for named tuple initialization 2015-01-01 14:53:23 +02:00
class_str.py
class_subclass_builtin.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
class_super.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
class_super_object.py objtype: super: Fall back to "object" lookup as last resort. 2014-05-21 22:27:03 +03:00
closure1.py
closure2.py
closure_defargs.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
compare_multi.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
comprehension1.py
containment.py py: Make native emitter handle multi-compare and not/is not/not in ops. 2014-09-23 14:15:45 +00:00
continue.py
del_attr.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
del_deref.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
del_global.py tests: Add some tests to improve coverage. 2015-01-29 00:44:11 +00:00
del_local.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
del_name.py tests: Add some tests to improve coverage. 2015-01-29 00:44:11 +00:00
del_subscr.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
dict1.py
dict2.py
dict_clear.py
dict_construct.py py: Implement full behaviour of dict.update(), and dict(). 2014-06-03 12:53:44 +01:00
dict_copy.py
dict_del.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
dict_from_iter.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
dict_fromkeys.py
dict_get.py
dict_intern.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
dict_iterator.py
dict_pop.py
dict_popitem.py
dict_setdefault.py
dict_update.py py: Implement full behaviour of dict.update(), and dict(). 2014-06-03 12:53:44 +01:00
dict_views.py
enumerate.py py: Add keyword arg support to enumerate constructor. 2014-05-06 16:38:54 +00:00
equal.py
equal_class.py py: Implement fallback for equality check for all types. 2015-01-11 15:13:18 +00:00
except_match_tuple.py tests: Add test for exception matching of a tuple of exceptions. 2014-09-25 15:49:26 +01:00
exception1.py
exceptpoly.py py: Remove unused and unneeded SystemError exception. 2014-10-22 19:42:55 +01:00
exec1.py
filter.py
floordivide.py
for1.py
for2.py
for3.py py: Fix optimised for-loop compiler so it follows proper semantics. 2014-12-12 17:19:56 +00:00
for_break.py tests: Add another test for break-from-for-loop. 2014-05-31 16:56:15 +01:00
for_return.py py: Fix stack underflow with optimised for loop. 2014-05-31 17:59:11 +01:00
frozenset1.py py: frozenset() creates an empty frozenset. 2014-05-11 18:28:48 +01:00
frozenset_add.py objset: Add frozenset tests, skippable if frozenset not available. 2014-05-10 16:56:21 +03:00
frozenset_binop.py objset: Add frozenset tests, skippable if frozenset not available. 2014-05-10 16:56:21 +03:00
frozenset_copy.py objset: Add frozenset tests, skippable if frozenset not available. 2014-05-10 16:56:21 +03:00
frozenset_difference.py objset: Add frozenset tests, skippable if frozenset not available. 2014-05-10 16:56:21 +03:00
fun1.py
fun2.py
fun3.py
fun_annotations.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_calldblstar.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_callstar.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_callstardblstar.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_defargs.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_defargs2.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_kwargs.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_kwonly.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_kwonlydef.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_kwvarargs.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
fun_largestate.py tests: Add some tests to improve coverage. 2015-01-29 00:44:11 +00:00
fun_varargs.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
gen_yield_from.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
gen_yield_from_close.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
gen_yield_from_ducktype.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
gen_yield_from_exc.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
gen_yield_from_iter.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
gen_yield_from_send.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
gen_yield_from_throw.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
generator1.py
generator2.py
generator_args.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
generator_close.py
generator_closure.py objclosure: Fix printing of generator closures. 2014-10-16 00:14:01 +03:00
generator_exc.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
generator_return.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
generator_send.py
getattr.py
getattr1.py py: Make sure getattr() works with non-interned strings (by interning them). 2014-06-08 01:15:06 +03:00
getitem.py
globals_del.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
hasattr1.py py: Add basic implementation of hasattr() function. 2014-05-11 20:51:30 +03:00
ifcond.py py: Add more compiler optimisations for constant if/while conditions. 2014-10-17 17:57:33 +00:00
int1.py tests: Add some tests to improve coverage. 2015-01-29 00:44:11 +00:00
int_big_and.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
int_big_div.py py: Make mpz able to use 16 bits per digit; and 32 on 64-bit arch. 2014-09-06 17:15:34 +01:00
int_big_lshift.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
int_big_mod.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
int_big_mul.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
int_big_zeroone.py py: Fix comparison of minus-zero long int. 2015-01-27 17:47:38 +00:00
int_bytes.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
int_divmod.py py: Fix smallint modulo with negative arguments. 2014-10-22 23:05:50 +01:00
int_divzero.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
int_long.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
int_mpz.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
int_small.py tests: Add some tests to improve coverage. 2015-01-29 00:44:11 +00:00
is_isnot.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
iter1.py
iter2.py
iter_of_iter.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01: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
list_insert.py
list_mult.py py: Fix mult by negative number of tuple, list, str, bytes. 2014-08-13 13:22:24 +01:00
list_pop.py
list_remove.py
list_reverse.py
list_slice.py
list_slice_3arg.py tests: Add small testcase for 3-arg slices. 2014-05-26 02:02:47 +03:00
list_slice_assign.py objlist: Support list slice deletion. 2014-05-10 23:03:30 +03:00
list_slice_assign_grow.py objlist: Implement growing slice assignment. 2014-05-25 02:36:12 +03:00
list_sort.py
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
memoryerror.py.exp tests: create result file for test/basics/memoryerror.py . 2014-05-12 00:13:10 +02:00
memoryview1.py py: Add builtin memoryview object (mostly using array code). 2014-10-23 13:34:35 +01:00
memoryview_gc.py py: Fix memoryview referencing so it retains ptr to original buffer. 2014-10-26 13:20:50 +00:00
namedtuple1.py py: Allow keyword arguments for namedtuple 2015-01-01 14:53:23 +02:00
object_new.py py: Initial attempts to actually allow implementing __new__ in Python. 2014-05-22 00:32:00 +03:00
print.py
property.py tests: Add property test. 2014-04-13 19:00:27 +01:00
seq_unpack.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
set1.py
set_add.py
set_binop.py
set_clear.py
set_copy.py
set_difference.py
set_discard.py
set_intersection.py
set_isdisjoint.py
set_isfooset.py
set_iter.py
set_pop.py
set_remove.py
set_symmetric_difference.py
set_union.py
set_update.py
slots_bool_len.py
sorted.py
string1.py
string_compare.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
string_count.py
string_endswith.py objstr: Implement .endswith(). 2014-05-24 22:46:51 +03:00
string_escape.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
string_find.py
string_format.py objstr: Implement kwargs support for str.format(). 2015-01-04 00:26:31 +02:00
string_format_modulo.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
string_index.py
string_istest.py add methods isspace(), isalpha(), isdigit(), isupper() and islower() to str 2014-05-31 07:30:57 +01:00
string_join.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
string_large.py py: Never intern data of large string/bytes object; add relevant tests. 2015-01-13 16:21:23 +00:00
string_mult.py py: Fix mult by negative number of tuple, list, str, bytes. 2014-08-13 13:22:24 +01:00
string_partition.py objstr: Make .[r]partition() work with bytes. 2014-05-11 03:33:19 +03:00
string_replace.py
string_repr.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
string_rfind.py
string_rindex.py
string_rpartition.py
string_rsplit.py objstr.c: Partial implementation of .rsplit(). 2014-05-14 02:42:20 +03:00
string_slice.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
string_split.py objstr: Make .split() support bytes. 2014-05-11 21:17:28 +03:00
string_startswith.py objstr: startswith(): Accept optional "start" arg. 2014-05-15 21:33:18 +03:00
string_strip.py objstr: *strip(): If nothing is stripped, don't create dup string. 2014-05-30 03:15:17 +03:00
string_upperlow.py objstr: Implement .lower() and .upper(). 2014-05-10 19:49:07 +03:00
struct1.py py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. 2014-12-05 23:13:52 +00:00
subclass_classmethod.py objtype: Fix passing of class param to inherited classmethods. 2014-06-08 22:28:44 +03:00
subclass_native1.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
subclass_native2_list.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
subclass_native2_tuple.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
subclass_native3.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
subclass_native4.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
subclass_native5.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
subclass_native_cmp.py objtuple: Go out of the way to support comparison of subclasses. 2014-05-11 03:33:19 +03:00
subclass_native_specmeth.py objtype: Implement ->getiter() method for instances. 2014-05-10 21:26:08 +03:00
true_value.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
try1.py
try2.py
try3.py
try4.py
try_as_var.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
try_finally1.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
try_finally_loops.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
try_finally_return.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
try_reraise.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
try_reraise2.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
tuple1.py
tuple_compare.py sequence: Fix glaring bug in sequence comparison. 2014-04-18 21:42:54 +03:00
tuple_count.py
tuple_index.py
tuple_mult.py py: Fix mult by negative number of tuple, list, str, bytes. 2014-08-13 13:22:24 +01: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 tests: Add some tests to improve coverage. 2015-01-29 00:44:11 +00:00
unboundlocal.py
unpack1.py
while1.py
while_cond.py py: Add more compiler optimisations for constant if/while conditions. 2014-10-17 17:57:33 +00:00
while_nest_exc.py tests: Add test for nested while with exc and break. 2014-10-17 17:28:25 +00:00
with1.py tests: Make tests pass on pyboard. 2014-04-13 17:46:30 +01:00
with_break.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
with_continue.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
with_return.py tests: Rename test scripts, changing - to _ for consistency. 2014-07-05 06:14:29 +01:00
zip.py