Tom Collins
4d3a92c67c
extmod/vfs_fat: Add file size as 4th element of uos.ilistdir tuple.
2018-03-12 12:26:36 +11:00
Damien George
0acf868bb7
tests/extmod/time_ms_us: Fix ticks tests, ticks_diff args are reversed.
2018-03-04 00:38:15 +11:00
Damien George
e3d11b6a6e
tests/extmod/time_ms_us: Add test for calling ticks_cpu().
...
This is just to test that the function exists and returns some kind of
valid value. Although this file is for testing ms/us functions, put the
ticks_cpu() test here so not to add a new test file.
2018-03-04 00:17:33 +11:00
Damien George
90e719a232
tests/extmod/vfs_fat_fileio1: Add test for calling file obj finaliser.
2018-02-28 15:27:51 +11:00
Damien George
4c2230add8
tests/extmod/uzlib_decompress: Add uzlib tests to improve coverage.
2018-02-26 13:36:55 +11:00
Damien George
a604451566
tests/extmod/vfs_fat_fileio1: Add test for failing alloc with finaliser.
2018-02-26 13:36:13 +11:00
Damien George
d9bca1f7bd
extmod/modujson: Implement ujson.dump() function.
2018-02-15 11:35:42 +11:00
Ayke van Laethem
7642785881
extmod/vfs_fat_file: Implement SEEK_CUR for non-zero offset.
...
CPython doesn't allow SEEK_CUR with non-zero offset for files in text mode,
and uPy inherited this behaviour for both text and binary files. It makes
sense to provide full support for SEEK_CUR of binary-mode files in uPy, and
to do this in a minimal way means also allowing to use SEEK_CUR with
non-zero offsets on text-mode files. That seems to be a fair compromise.
2018-01-31 17:33:07 +11:00
Damien George
d35c6ffc84
tests/extmod: Add some uctypes tests to improve coverage of that module.
2017-12-19 16:48:41 +11:00
Damien George
251b00457c
tests/extmod/uhashlib_sha256: Add test for hashing 56 bytes of data.
2017-12-19 14:46:31 +11:00
Damien George
46b35356e1
extmod/modframebuf: Add 8-bit greyscale format (GS8).
2017-12-14 17:36:13 +11:00
Petr Viktorin
34247465c3
extmod/modframebuf: Add 2-bit color format (GS2_HMSB).
...
This format is used in 2-color LED matrices and in e-ink displays like
SSD1606.
2017-12-14 17:13:02 +11:00
Damien George
3c28df1658
tests/extmod: Add test which subclasses framebuf.FrameBuffer.
2017-12-12 16:48:09 +11:00
Damien George
98dd126e98
tests/extmod: Add test for '-' in character class in regex.
2017-10-05 11:33:49 +11:00
Paul Sokolovsky
8e0b9f495b
tests/extmod: Add test for ure regexes leading to infinite recursion.
...
These now should be caught properly and lead to RuntimeError instead of
crash.
2017-10-03 00:24:32 +03:00
Alex Robbins