const test = require('ava')
const setEquals = require('.')

test(t => {
  const tests = [
    setEquals([1, 2], [2, 1]),
    setEquals([1, 2, 5], [2, 5, 1], [1, 5, 2]),
    setEquals([NaN], [NaN]),
    setEquals([], []),
    setEquals([1])
  ]
  tests.forEach(x => t.true(x))
})

test(t => {
  const tests = [
    setEquals([1, 3], [1, 2]),
    setEquals([1, 3, '#'], [3, 1]),
    setEquals([1, 3], [3, '#', 1]),
    setEquals([], [2])
  ]
  tests.forEach(x => t.false(x))
})

test.only(t => {
  t.throws(() => setEquals(NaN))
  t.throws(() => setEquals(NaN, NaN))
})

@@ -478,13 +478,8 @@
 test
-.only
 (t =

test cleanup