micropython/tests
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function.
Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as
the operator argument.  Hashing for int, str and bytes still go via
fast-path in mp_unary_op since they are the most common objects which
need to be hashed.

This lead to quite a bit of code cleanup, and should be more efficient
if anything.  It saves 176 bytes code space on Thumb2, and 360 bytes on
x86.

The only loss is that the error message "unhashable type" is now the
more generic "unsupported type for __hash__".
2015-05-12 22:46:02 +01:00
..
basics py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 2015-05-12 22:46:02 +01:00
bench
bytecode unix-cpy: Fix adjustment of stack size when leaving exception handler. 2015-05-06 16:46:21 +01:00
cmdline py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 2015-05-12 22:46:02 +01:00
extmod tests: Add test for machine module (mem* functions). 2015-05-08 00:18:28 +01:00
float modstruct: Rename module to "ustruct", to allow full Python-level impl. 2015-05-04 16:53:52 +03:00
import
inlineasm py/inlinethumb: Support for core floating point instructions. 2015-04-19 15:47:05 +01:00
io tests: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01:00
micropython tests: Add more tests for viper, including tests for ViperTypeError's. 2015-04-22 23:18:28 +01:00
misc vm: On exiting except block, clear sys.exc_info() value. 2015-04-26 01:40:37 +03:00
pyb sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value. 2015-05-11 23:48:39 +01:00
pybnative
unicode tests: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01:00
unix unix: Make extra-coverage function callable from Python scripts. 2015-05-08 09:18:38 +01:00
README
pyboard.py
run-bench-tests
run-tests modsys: Add basic sys.exc_info() implementation. 2015-04-25 03:49:23 +03:00
run-tests-exp.py
run-tests-exp.sh

README

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.