spec/support/hashlike_fuzzing_helper.rb
# workaround: some errors have slightly different strings than Hash does
some errors have slightly different strings than Hash does
some errors have slightly different strings than Hash does
def err_regex err
    err_str = err.to_s
    err_str = Regexp.escape(err_str)
    if err.is_a?(TypeError)
      err_str.gsub!(/nil/,   '(nil|NilClass)')
      err_str.gsub!(/false/, '(false|FalseClass)')
    elsif err.is_a?(ArgumentError)
      err_str.gsub!(/arguments(\\ )*\\\(/, 'arguments\s*\(')
      err_str.gsub!(/for\\ (\d\\\.\\\.\d)/, 'for [\d\.]+')
    end
    Regexp.new(err_str)
  end
def err_regex err err_str = err . to_s err_str = Regexp . escape ( err_str ) if err . is_a? ( TypeError ) err_str . gsub! ( / nil / , '(nil|NilClass)' ) err_str . gsub! ( / false / , '(false|FalseClass)' ) elsif err . is_a? ( ArgumentError ) err_str . gsub! ( / arguments( \\  )* \\ \( / , 'arguments\s*\(' ) err_str . gsub! ( / for \\  ( \d \\ \. \\ \. \d ) / , 'for [\d\.]+' ) end Regexp . new ( err_str ) end
workaround: some errors have slightly different strings than Hash does
workaround : some errors have slightly different strings than Hash does
err
<not_specific>