Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in pixel_spec.rb #128

Open
DamianRivas opened this issue Apr 20, 2018 · 0 comments
Open

Error in pixel_spec.rb #128

DamianRivas opened this issue Apr 20, 2018 · 0 comments

Comments

@DamianRivas
Copy link

Looks like there was a mistake in pixel_spec.rb

    it "corrects a blue value if it's less than 0" do
      pixel = Pixel.new(100, -10, 100, 5, 5)
      expect(pixel.green).to eq 0
    end
    
    it "corrects a green value if it's less than 0" do
      pixel = Pixel.new(100, 100, -12, 5, 5)
      expect(pixel.blue).to eq 0
    end

You are checking the wrong values for the green and blue specs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant