# frozen_string_literal: true

RSpec.describe Magick::Image, '#wet_floor' do
  it 'works' do
    image = described_class.new(20, 20)

    expect(image.wet_floor).to be_instance_of(described_class)
    expect { image.wet_floor(0.0) }.not_to raise_error
    expect { image.wet_floor(0.5) }.not_to raise_error
    expect { image.wet_floor(0.5, 10) }.not_to raise_error
    expect { image.wet_floor(0.5, 0.0) }.not_to raise_error

    expect { image.wet_floor(2.0) }.to raise_error(ArgumentError)
    expect { image.wet_floor(-2.0) }.to raise_error(ArgumentError)
    expect { image.wet_floor(0.5, -1.0) }.to raise_error(ArgumentError)
    expect { image.wet_floor(0.5, 10, 0.5) }.to raise_error(ArgumentError)
  end
end
