Paul Sokolovsky
0be4a7712d
tests: Rename zlibd_decompress.py -> uzlib_decompress.py.
To use the actual current name.
8 years ago
Paul Sokolovsky
3eb532e974
extmod/modbtree: Implement __contains__ operation.
8 years ago
Paul Sokolovsky
bc3912980a
tests/machine1: Revamp to work with unix port (which has "umachine").
8 years ago
Paul Sokolovsky
eb0e3bab1e
tests/machine_mem.py: Too non-portable, rework as an example for unix port.
8 years ago
Paul Sokolovsky
617bda27e9
tests/extmod/btree1: Tests against in-memory DB (using io.BytesIO).
8 years ago
Paul Sokolovsky
5a38694f55
tests/extmod/btree1: Close database at the end of test.
8 years ago
Paul Sokolovsky
c3f519adfe
tests/extmod/machine_pinbase: Skip if machine.PinBase is not available.
8 years ago
Paul Sokolovsky
0fb7a7a7ce
tests/btree1: Add testcase for iterating btree object directly.
8 years ago
Paul Sokolovsky
d5835261af
tests/extmod: Add "btree" module test.
9 years ago
Paul Sokolovsky
119b3dabf7
tests: Add a testcase for machine.PinBase class.
9 years ago
Paul Sokolovsky
f0eea1fdf9
tests/extmod/vfs_fat_ramdisk: Add testcases for chdir(), getcwd().
9 years ago
Damien George
07615d9f7e
tests/extmod: Move split-on-empty-match tests to a separate test file.
And provide an expected-output file because these tests have a different
behaviour under CPython.
9 years ago
Damien George
da161fd9f0
extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types.
9 years ago
Paul Sokolovsky
2740dd85f2
tests/vfs_fat_ramdisk: Add testcase for .rename().
9 years ago
Paul Sokolovsky
9fb36af9af
tests/vfs_fat_ramdisk: Allow to run in native mode (don't use "with").
9 years ago
Paul Sokolovsky
eaa96a7610
tests/vfs_fat_ramdisk: Add testcase for .mkdir().
9 years ago
Paul Sokolovsky
57425b648f
tests/vfs_fat_ramdisk: Add testcase for .remove().
9 years ago
Paul Sokolovsky
9c081b740b
tests/vfs_fat_ramdisk: Add .listdir() testcase.
9 years ago
Paul Sokolovsky
dfc35afba1
tests/vfs_fat_ramdisk: Skip test if can't allocate ramdisk.
9 years ago
Paul Sokolovsky
9fdac9144d
tests/vfs_fat_ramdisk: Allow to override sector size.
9 years ago
Paul Sokolovsky
9d0525182d
tests/vfs_fat_ramdisk: Switch to ioctl-based blockdev API.
9 years ago
Paul Sokolovsky
0ee1d0f407
tests/vfs_fat_ramdisk: Add test for VfsFat.
9 years ago
Damien George
ac11e89fa3
tests: For urandom test, use sys.exit() instead of sys.exit(1).
9 years ago
Damien George
0ae97f531d
tests: Add some tests for urandom module.
9 years ago
Dave Hylands
66d0c1052a
extmod: Fix uctypes size calculation for bitfields
9 years ago
Antonin ENFRUN
b50030b1d0
tests/uctypes: Test item assignment for scalar arrays.
9 years ago
Dave Hylands
5a4a2b1db3
extmod: Add test which demonstrates LITTLE_ENDIAN packing failure
9 years ago
Paul Sokolovsky
aee704ebe1
extmod/modure: Make sure that errors in regexps are caught early.
9 years ago
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.
9 years ago
Damien George
25afc7da0d
tests: Add tests to improve coverage of objstr.c.
9 years ago
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.
9 years ago
Damien George
68e8b595de
tests: Catch ValueError instead of any exception to properly test error.
9 years ago
Galen Hazelwood
616986a5f3
extmod: Add a2b_base64 and b2a_base64 functions to ubinascii.
9 years ago
Damien George
e44c1d3ace
tests: Split out json float tests to separate files.
10 years ago
Damien George
f6518a7bd5
tests: Check that machine module exists and print SKIP if it doesn't.
10 years ago
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.
10 years ago
Dave Hylands
3ad94d6072
extmod: Add ubinascii.unhexlify
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit
10 years ago
Damien George
0589c19d52
tests: Add test for machine module (mem* functions).
10 years ago
Damien George
e5c4362a98
tests: Add some more tests to improve code coverage of corner cases.
10 years ago
Damien George
f256cfef4f
tests: Add some more tests for complex numbers and ure module.
10 years ago
Damien George
26a9975fba
tests: Add some more tests for bytes, bignum, string and ujson.
10 years ago
Damien George
c832bde05f
tests: Add zlib test for decompressing uncompressed data.
10 years ago
Damien George
55278dcc76
tests: Add test for modure when regex has errors.
10 years ago
Damien George
6cb6947b99
extmod/ure: Correctly return None when a group has no match.
See issue #1122 .
10 years ago
Damien George
2af921fb51
tests: Add tests for op special meths, ubinascii, complex.
10 years ago
Damien George
4e3906d6b5
tests: Add tests for ure groups and named char classes.
Issue #1122 should now be fixed.
10 years ago
Damien George
5f64dc55d8
extmod: Make ujson.loads raise exception if given empty string.
Addresses issue #1097 .
10 years ago
Paul Sokolovsky
2324f3ef29
moduzlib: Implement raw DEFLATE decoding support.
10 years ago
Paul Sokolovsky
444331c07f
modujson: .loads(): Handle more whitespace characters.
10 years ago
Paul Sokolovsky
c8b0229bc7
tests: sha256: skip test if uhashlib module is not available.
10 years ago