summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-25 23:58:12 +0900
committergit <svn-admin@ruby-lang.org>2023-06-25 15:24:05 +0000
commitc21436cb353f8194db647bde2a5ef434eb3dcb2a (patch)
tree69bdd4a63448f2d4ac08136dd3eb098a773ddb49 /test
parent15ec072a4266cba7b3548548ef48d85d296ae9e2 (diff)
[ruby/uri] Fix host part in relative referece #83
In relative referece, host part can be ommitted but can not be empty. https://github.com/ruby/uri/commit/2980f0ba02
Diffstat (limited to 'test')
-rw-r--r--test/uri/test_generic.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb
index 3897c3d6ee..e6619373c6 100644
--- a/test/uri/test_generic.rb
+++ b/test/uri/test_generic.rb
@@ -977,6 +977,10 @@ class URI::TestGeneric < Test::Unit::TestCase
end
end
+ def test_split
+ assert_equal [nil, nil, nil, nil, nil, "", nil, nil, nil], URI.split("//")
+ end
+
class CaseInsensitiveEnv
def initialize(h={})
@h = {}