Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.rrb-vector by

The attached patch contains a test which fails for both the Clojure and ClojureScript implementations. It simply repeatedly calls subvec and catvec to assemble an interleaved vector. The patch attached contains fixes for Clojure only. I will investigate the fixes for CLJS, but thought it best to raise an issue with my findings so far.

2371 is the minimum length that exhibits the behaviour (triggers an ArrayIndexOutOfBoundsException).

3 Answers

0 votes
by

Comment made by: neilkirsopp

New patch passing tests in Clojure and ClojureScript.

0 votes
by

Comment made by: michalmarczyk

Thanks so much once again! I've applied your patch to master and added a test.check-based version of your test-reduce-subvec-catvec test (keeping the original breaking example).

0 votes
by
Reference: https://clojure.atlassian.net/browse/CRRBV-9 (reported by neilkirsopp)
...