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
IPAddr.new("0.0.0.0") == nil
IPAddr.new("0.0.0.0") == nil and nil == IPAddr.new("0.0.0.0") return different result.
nil == IPAddr.new("0.0.0.0")
# IPv4 IPAddr.new("0.0.0.0") == nil => true # expected false nil == IPAddr.new('0.0.0.0') => false IPAddr.new("0.0.0.0").nil? => false # IPv6 IPAddr.new("::") == nil => true # expected false nil == IPAddr.new("::") => false IPAddr.new("::").nil? => false
IPAddr.new("0.0.0.0") == nil return false, just like IPAddr.new("0.0.0.0").nil?.
IPAddr.new("0.0.0.0").nil?
IPAddr.new("0.0.0.0") == nil return true.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
IPAddr.new("0.0.0.0") == nil
andnil == IPAddr.new("0.0.0.0")
return different result.Steps to reproduce
Expected behavior
IPAddr.new("0.0.0.0") == nil
return false, just likeIPAddr.new("0.0.0.0").nil?
.Actual behavior
IPAddr.new("0.0.0.0") == nil
return true.System configuration
Related Issue
The text was updated successfully, but these errors were encountered: