old_contents: const assert = require('assert')
  
  // Assertion that succeeds if the first argument deepEquals at least one of the
  // subsequent arguments (but we don't care which one)
  function equalsOneOf(actual, ...expected) {
    assert(expected.length > 0)
    for (let i = 0; i < expected.length; i++) {
      try {
        assert.deepEqual(actual, expected[i])
        return // if we get here without an exception, that means success
      } catch (e) {
        if (e.name !== 'AssertionError' || i === expected.length - 1) throw e
      }
    }
  }
  
  module.exports = { equalsOneOf }
  
new_contents: const assert = require('assert')
  
  // Assertion that succeeds if the first argument deepEquals at least one of the
  // subsequent arguments (but we don't care which one)
  function equalsOneOf(actual, ...expected) {
    assert(expected.length > 0)
    for (let i = 0; i < expected.length; i++) {
      try {
        assert.deepEqual(actual, expected[i])
        return // if we get here without an exception, that means success
      } catch (e) {
        if (!e.name.match(/^AssertionError/) || i === expected.length - 1) throw e
      }
    }
  }
  
  module.exports = { equalsOneOf }
  
subject: Fix equalsOneOf