function assertArrayContentsEqual (t, actual, expected) {
  t.equal(actual.length, expected.length)
  // assert that both have the same items regardless of order
  for (const item of actual) {
    t.ok(expected.some(e => e.from === item.from && e.to === item.to))
  }
}
Asserts that the given arrays of selections have the same from-to pairs, regardless of order
@param {import('tape').Test} t
@param {Array<Selections>} actual
@param {Array<Selections>} expected