annex icon indicating copy to clipboard operation
annex copied to clipboard

Testing mutable arrays

Open josevalim opened this issue 4 years ago • 0 comments

Hi @elbow-jason! 👋

Nice meeting you at ElixirConf! I remember I mentioned to you that, because the existing ndarrays implementations are immutable, your code can be relying on immutable assumptions. So on the flight back home I actually thought of a simple we can easily test this: just wrap one of the existing immutable implementations in an Agent/GenServer! This could be something useful for you to run in your test suite. For instance, you could run the whole test suite multiple times, one time using the immutable and another the mutable one.

This may not be an issue, so feel free to close this!

josevalim avatar Sep 02 '19 14:09 josevalim