micropython/tests
Dave Hylands a3a14b9db7 lib: Fix some issues in timeutils
In particular, dates prior to Mar 1, 2000 are screwed up.

The easiest way to see this is to do:

>>> import time
>>> time.localtime(0)
(2000, 1, 1, 0, 0, 0, 5, 1)
>>> time.localtime(1)
(2000, 1, 2, 233, 197, 197, 6, 2)

With this patch, we instead get:
>>> import time
>>> time.localtime(1)
(2000, 1, 1, 0, 0, 1, 5, 1)

Doh - In C % is NOT a modulo operator, it's a remainder operator.
2015-05-21 23:31:50 +03:00
..
basics tests: Add further tests for class defining __hash__. 2015-05-12 23:08:18 +01:00
bench py: Use sequence of strings for named tuple initialization 2015-01-01 14:53:23 +02:00
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 extmod: Add ubinascii.unhexlify 2015-05-20 09:29:22 +01:00
float py: Implement mp_format_float for doubles and use where appropriate 2015-05-17 21:47:11 +01:00
import tests: Add another testcase for relative imports. 2015-02-16 12:11:41 +02:00
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 lib: Fix some issues in timeutils 2015-05-21 23:31:50 +03:00
pybnative py: Fix stack access in thumb native emitter. 2014-05-07 23:27:45 +01:00
unicode tests: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01:00
unix unix: Add some extra coverage tests for vstr and attrtuple. 2015-05-12 23:34:10 +01:00
README tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
pyboard.py tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
run-bench-tests tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
run-tests modsys: Add basic sys.exc_info() implementation. 2015-04-25 03:49:23 +03:00
run-tests-exp.py tests: Add run-tests-exp.py, simple MicroPython-based test runner. 2014-12-24 16:34:05 +00:00
run-tests-exp.sh run-tests-exp.sh: Typo fix in comment. 2015-02-21 03:22:33 +02:00

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.