Category Archives: Minitest

Comparing arrays in an order-independent manner using minitest

Problem After reading this question on StackOverflow, I was curious how you could compare 2 arrays in an order-independent way. For example, the spec: Will fail with the exception: We want the spec to pass since all elements in the … Continue reading

Posted in Minitest | 1 Comment