Function to test if two collections contain the same values.
Sometimes when creating unit tests, I need to test that two slices contain the same values, but not necessarily in the same order. You can sort the values before testing that the two slices are identical, or alternatively, you can use this crate instead.
use same_elements::*; let a = [1,2,3,4,5]; let b = [2,4,1,3,5]; assert!(a.same_elements(&b));