diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2021-03-04 15:18:36 -0800 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-04-22 14:54:37 +0900 |
| commit | 3e27ca60470cbd73dd82ca6b8007a3b8362d576e (patch) | |
| tree | b0a84f78b2bf5bddd2a10bae6271ef4f3fb5fe43 | |
| parent | c46a4b8c7f434110c30c9587e02387283076579f (diff) | |
[ruby/uri] Add tests for URI::RFC{2396,3986}_Parser#inspect
https://github.com/ruby/uri/commit/d47dae2f8e
| -rw-r--r-- | test/uri/test_parser.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/uri/test_parser.rb b/test/uri/test_parser.rb index b13a26ca84..03de137788 100644 --- a/test/uri/test_parser.rb +++ b/test/uri/test_parser.rb @@ -7,6 +7,11 @@ class URI::TestParser < Test::Unit::TestCase 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) |
