We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ruby 3.0.2:
Rational("bogus", 1) # => ArgumentError
TruffleRuby 22.0.0.2:
Rational("bogus", 1) # => (0/1)
As to why it raises an ArgumentError instead of a TypeError, I don't remember, but it's probably why I originally tested for this.
The text was updated successfully, but these errors were encountered:
This is already fixed on master. This is a duplicate of #2566 .
Sorry, something went wrong.
No branches or pull requests
Ruby 3.0.2:
Rational("bogus", 1) # => ArgumentError
TruffleRuby 22.0.0.2:
Rational("bogus", 1) # => (0/1)
As to why it raises an ArgumentError instead of a TypeError, I don't remember, but it's probably why I originally tested for this.
The text was updated successfully, but these errors were encountered: