Paul Sokolovsky
aee704ebe1
extmod/modure: Make sure that errors in regexps are caught early.
2015-11-01 00:38:22 +03:00
Paul Sokolovsky
acea9352a9
tests/extmod: Add tests for sleep_ms/us(), ticks_ms/us/diff().
...
Simple smoke tests, mostly for coverage. Added to extmod based on the fact
that they're extensions to standard modules.
2015-10-20 01:54:20 +03:00
Damien George
25afc7da0d
tests: Add tests to improve coverage of objstr.c.
2015-09-03 23:06:18 +01:00
Paul Sokolovsky
354d17523f
modmachine: Implement physical memory access using /dev/mem (Linux, etc).
...
This requires root access. And on recent Linux kernels, with
CONFIG_STRICT_DEVMEM option enabled, only address ranges listed in
/proc/iomem can be accessed. The above compiled-time option can be
however overriden with boot-time option "iomem=relaxed".
This also removed separate read/write paths - there unlikely would
be a case when they're different.
2015-07-08 11:37:23 +03:00
Damien George
68e8b595de
tests: Catch ValueError instead of any exception to properly test error.
2015-07-06 11:35:08 +00:00
Galen Hazelwood
616986a5f3
extmod: Add a2b_base64 and b2a_base64 functions to ubinascii.
2015-07-04 12:26:52 +03:00
Damien George
e44c1d3ace
tests: Split out json float tests to separate files.
2015-06-25 10:50:00 +01:00
Damien George
f6518a7bd5
tests: Check that machine module exists and print SKIP if it doesn't.
2015-06-15 23:35:15 +01:00
Paul Sokolovsky
1679696612
moductypes: Swap address and descriptor args in constructor.
...
Now address comes first, and args related to struct type are groupped next.
Besides clear groupping, should help catch errors eagerly (e.g. forgetting
to pass address will error out).
Also, improve args number checking/reporting overall.
2015-06-06 22:57:54 +03:00
Dave Hylands
3ad94d6072
extmod: Add ubinascii.unhexlify
...
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit
2015-05-20 09:29:22 +01:00
Damien George
0589c19d52
tests: Add test for machine module (mem* functions).
2015-05-08 00:18:28 +01:00
Damien George
e5c4362a98
tests: Add some more tests to improve code coverage of corner cases.
2015-04-05 00:03:43 +01:00
Damien George
f256cfef4f
tests: Add some more tests for complex numbers and ure module.
2015-03-14 22:56:02 +00:00
Damien George
26a9975fba
tests: Add some more tests for bytes, bignum, string and ujson.
2015-03-14 21:20:58 +00:00
Damien George
c832bde05f
tests: Add zlib test for decompressing uncompressed data.
2015-03-12 00:17:04 +00:00
Damien George
55278dcc76
tests: Add test for modure when regex has errors.
2015-03-10 17:47:43 +00:00
Damien George
6cb6947b99
extmod/ure: Correctly return None when a group has no match.
...
See issue #1122 .
2015-03-04 13:51:32 +00:00
Damien George
2af921fb51
tests: Add tests for op special meths, ubinascii, complex.
2015-03-02 12:47:44 +00:00
Damien George
4e3906d6b5
tests: Add tests for ure groups and named char classes.
...
Issue #1122 should now be fixed.
2015-02-21 10:39:41 +00:00
Damien George
5f64dc55d8
extmod: Make ujson.loads raise exception if given empty string.
...
Addresses issue #1097 .
2015-02-02 21:52:19 +00:00
Paul Sokolovsky
2324f3ef29
moduzlib: Implement raw DEFLATE decoding support.
2015-01-28 02:21:49 +02:00
Paul Sokolovsky
444331c07f
modujson: .loads(): Handle more whitespace characters.
2015-01-23 18:41:29 +02:00
Paul Sokolovsky
c8b0229bc7
tests: sha256: skip test if uhashlib module is not available.
2014-12-18 00:32:15 +02:00
Paul Sokolovsky
4a1c80c293
tests: Add test for hashlib.sha256 .
2014-11-22 14:54:02 +02:00
Paul Sokolovsky
66d08eb4fe
moductypes: Add test for accessing UINT8 array.
2014-10-30 03:50:37 +02:00