Skip to content

Commit

Permalink
[ruby/uri] Add tests for URI::RFC{2396,3986}_Parser#inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans authored and hsbt committed Apr 22, 2021
1 parent c46a4b8 commit 3e27ca6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/uri/test_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ def uri_to_ary(uri)
uri.class.component.collect {|c| uri.send(c)}
end

def test_inspect
assert_match(/URI::RFC2396_Parser/, URI::Parser.new.inspect)
assert_match(/URI::RFC3986_Parser/, URI::RFC3986_Parser.new.inspect)
end

def test_compare
url = 'http://a/b/c/d;p?q'
u0 = URI.parse(url)
Expand Down

0 comments on commit 3e27ca6

Please sign in to comment.