micropython/tests
Paul Sokolovsky 2559e13957 moductypes: Make sure we can apply .sizeof() to all aggregate types.
Before, sizeof() could be applied to a structure field only if that field
was itself a structure. Now it can be applied to PTR and ARRAY fields too.
It's not possible to apply it to scalar fields though, because as soon as
scalar field (int or float) is dereferenced, its value is converted into
Python int/float value, and all original type info is lost. Moreover, we
allow sizeof of type definitions too, and there int is used to represent
(scalar) types. So, we have ambiguity what int may be - either dereferenced
scalar structure field, or encoded scalar type. So, rather throw an error
if user tries to apply sizeof() to int.
2014-10-30 03:50:23 +02:00
..
basics tests: Get builtin_compile to skin properly on pyboard. 2014-10-26 15:38:28 +00:00
bench bench: Three ways to process a byte buffer. 2014-06-19 22:27:13 +03:00
bytecode fix README to match contents of run-tests 2014-04-16 20:14:38 +01:00
extmod moductypes: Make sure we can apply .sizeof() to all aggregate types. 2014-10-30 03:50:23 +02:00
float py: Fix build error when float disabled; add test for divmod. 2014-09-13 19:58:18 +01:00
import py: Implement __file__ attribute for modules. 2014-07-28 21:21:59 +03:00
inlineasm tests: Add inline assembler test for pyboard. 2014-05-07 18:31:14 +01:00
io stream: Add optional 2nd "length" arg to .readinto() - extension to CPython. 2014-10-23 21:43:59 +03:00
micropython py: Remove unused and unneeded SystemError exception. 2014-10-22 19:42:55 +01:00
misc tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm. 2014-09-06 18:38:55 +01:00
pyb stmhal: Change SPI phase spec to 0,1 to match standard conventions. 2014-10-26 13:54:31 +00:00
pybnative py: Fix stack access in thumb native emitter. 2014-05-07 23:27:45 +01:00
unicode Use mode/encoding kwargs in io and unicode tests 2014-10-21 22:10:38 +03:00
unix tests: Skip ffi_float.py if module ffi is not available. 2014-10-06 22:37:40 +03:00
pyboard.py tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
README tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
run-bench-tests tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
run-tests tests: Add check for micropython.native and then skip relevant tests. 2014-10-05 22:27:12 +01:00
run-tests-exp.sh tests: Force skip of LE test on non-LE arch; improve run-tests-exp.sh. 2014-10-06 17:35:46 +00:00

This directory contains tests for various functionality areas of MicroPython.
To run all stable tests, run "run-tests" script in this directory. Note
that bytecode tests are not yet stable and should be run separately in
"bytecode" subdirectory.

When creating new tests, anything that relies on float support should go in the 
float/ subdirectory.  Anything that relies on import x, where x is not a built-in
module, should go in the import/ subdirectory.