Jim Mussared
4216bc7d13
tests: Replace umodule with module everywhere.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2 years ago
stijn
09be0c083c
py/objarray: Implement more/less comparisons for array.
4 years ago
stijn
57365d8557
py/objarray: Prohibit comparison of mismatching types.
Array equality is defined as each element being equal but to keep
code size down MicroPython implements a binary comparison. This
can only be used correctly for elements with the same binary layout
though so turn it into an NotImplementedError when comparing types
for which the binary comparison yielded incorrect results: types
with different sizes, and floating point numbers because nan != nan.
4 years ago
Jim Mussared
54db464a1b
tests/basics/array1.py: Add equality testing for array.
5 years ago
Damien George
30e25174bb
tests: Rename "array" module to "uarray".
5 years ago
Paul Sokolovsky
a2803b74f4
tests/basics: Convert "sys.exit()" to "raise SystemExit".
8 years ago
Paul Sokolovsky
ef1bbada96
tests/array*: Allow to skip test if "array" is unavailable.
8 years ago
Damien George
e9404e5f5f
tests: Improve coverage of array, range, dict, slice, exc, unicode.
8 years ago
Paul Sokolovsky
60592fd23c
tests/array1: Add tests for "l", "L" array types to improve coverage.
8 years ago
Damien George
214179b430
tests: Add tests for SyntaxError, TypeError, and other missing things.
This is intended to improve coverage of the test suite.
10 years ago
Damien George
b40892d266
Rename array test to array1 so it doesn't clash with array module.
On my machine, 'import array' in CPython tries to load the array test.
11 years ago
Paul Sokolovsky
8e991e0680
Add basic array.array test.
11 years ago