summaryrefslogtreecommitdiff
path: root/tests/basics/array1.py
AgeCommit message (Collapse)Author
2023-06-08tests: Replace umodule with module everywhere.Jim Mussared
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-05-13py/objarray: Implement more/less comparisons for array.stijn
2021-05-13py/objarray: Prohibit comparison of mismatching types.stijn
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.
2020-02-21tests/basics/array1.py: Add equality testing for array.Jim Mussared
2019-10-22tests: Rename "array" module to "uarray".Damien George
2017-06-10tests/basics: Convert "sys.exit()" to "raise SystemExit".Paul Sokolovsky
2017-01-07tests/array*: Allow to skip test if "array" is unavailable.Paul Sokolovsky
2016-10-17tests: Improve coverage of array, range, dict, slice, exc, unicode.Damien George
2016-09-19tests/array1: Add tests for "l", "L" array types to improve coverage.Paul Sokolovsky
2015-03-25tests: Add tests for SyntaxError, TypeError, and other missing things.Damien George
This is intended to improve coverage of the test suite.
2014-01-28Rename array test to array1 so it doesn't clash with array module.Damien George
On my machine, 'import array' in CPython tries to load the array test.