ColorRGB.new should error when given a bad argument
Reported by John Croisant | June 18th, 2008 @ 01:05 AM
Observed: ColorRGB.new returns a bogus instance (all color values nil) when
given an invalid argument:
>> Rubygame::Color::ColorRGB.new(4)
=> #<Rubygame::Color::ColorRGB [, , , ]>
Expected: It should raise ArgumentError.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Flexible library for making games with the Ruby language.
rubygame.sourceforge.net
