wrest icon indicating copy to clipboard operation
wrest copied to clipboard

2 Uris with different order of parameters should be equal.

Open preethiramdev opened this issue 14 years ago • 1 comments

Uri.new("http://localhost:3000/type=bottle&owner=kai") should == Uri.new("http://localhost:3000/owner=kai&type=bottle")

preethiramdev avatar Sep 14 '10 06:09 preethiramdev

Also shouldn't the hashes too match even if the order of the query parameters are different?

Uri.new("http://localhost:3000/type=bottle&owner=kai").hash should == Uri.new("http://localhost:3000/owner=kai&type=bottle").hash

jasim avatar Dec 14 '10 09:12 jasim