# frozen_string_literal: true

RSpec.describe Magick::ImageList, '#any?' do
  it 'works' do
    image_list = described_class.new(*FILES[0..9])

    q = nil
    expect { q = image_list.any? { |_i| false } }.not_to raise_error
    expect(q).to be(false)
    expect { q = image_list.any?(Magick::Image) }.not_to raise_error
    expect(q).to be(true)
  end
end
