attaswift/BTree

Crash when inserting Element in List

AymanRadid opened this issue · 1 comments

Using the following function I am trying to benchmark the performance of this List

capture

I get the following error on line 183 BTreeNode
EXC_BAD_INSTRUCTION fatal error: Array index out of range.

The index where this happens is 682.

Very nice catch, thank you!
It was caused by a regression during refactoring that wasn't caught by the test suite.