enso/test
Hubert Plociniczak ae0889e843
Make ArrayOverBuffer behave like an Array/Array.sort no longer mutates the Array (#4022)
Most of the problems with accessing `ArrayOverBuffer` have been resolved by using `CoerceArrayNode` (https://github.com/enso-org/enso/pull/3817). In `Array.sort` we still however specialized on Array which wasn't compatible with `ArrayOverBuffer`. Similarly sorting JS or Python arrays wouldn't work.

Added a specialization to `Array.sort` to deal with that case. A generic specialization (with `hasArrayElements`) not only handles `ArrayOverBuffer` but also polyglot arrays coming from JS or Python. We could have an additional specialization for `ArrayOverBuffer` only (removed in the last commit) that returns `ArrayOverBuffer` rather than `Array` although that adds additional complexity which so far is unnecessary.

Also fixed an example in `Array.enso` by providing a default argument.
2023-01-09 17:49:49 +00:00
..
Benchmarks Add benchmarks comparing ArrayProxy with elements generated ad-hoc with a regular Vector (#3831) 2022-12-21 20:15:39 +00:00
Examples_Tests Import modules' extension methods only with unqualified import statements (#3906) 2022-12-01 10:13:34 +00:00
Geo_Tests Let JavaScript parse JSON and write JSON ... (#3987) 2022-12-20 10:33:46 +00:00
Google_Api_Test Parse the standard library (#3830) 2022-10-31 16:19:12 +00:00
Image_Tests Some more tidying based on remaining tickets and PR comments. (#3946) 2022-12-06 18:35:18 +00:00
Meta_Test_Suite_Tests Add with_clue support to test framework (#3786) 2022-12-13 13:46:50 +01:00
micro-distribution Removing Unsafe.set_atom_field (#4023) 2023-01-09 13:39:14 +00:00
Table_Tests Database Joins (#4007) 2023-01-05 10:36:22 +00:00
Tests Make ArrayOverBuffer behave like an Array/Array.sort no longer mutates the Array (#4022) 2023-01-09 17:49:49 +00:00
Visualization_Tests Database Joins (#4007) 2023-01-05 10:36:22 +00:00