Closed zostay closed 1 year ago
I guess we'll have to take a look at this now...
Now it does not error, it simply passes:
URI.new(query-form-delimiter => Str, grammar => IETF::RFC_Grammar.new(rfc => "rfc3986", grammar => IETF::RFC_Grammar::URI, parse-result => Match.new(:orig(""), :from(0), :pos(0), :hash(Map.new((:URI-reference(Match.new(:orig(""), :from(0), :pos(0), :hash(Map.new((:relative-ref(Match.new(:orig(""), :from(0), :pos(0), :hash(Map.new((:relative-part(Match.new(:orig(""), :from(0), :pos(0), :hash(Map.new((:path-empty(Match.new(:orig(""), :from(0), :pos(0))))))))))))))))))))))), match-prefix => Bool::False, path => URI::Path.new(path => "", segments => ("",)), scheme => "", authority => URI::Authority, query => URI::Query.new(hash-format => HashFormat::Lists), fragment => "")
Empty URIs are correct?
Ditto for the second one:
URI.new(query-form-delimiter => Str, grammar => IETF::RFC_Grammar.new(rfc => "rfc3986", grammar => IETF::RFC_Grammar::URI, parse-result => Match.new(:orig("http:"), :from(0), :pos(5), :hash(Map.new((:URI-reference(Match.new(:orig("http:"), :from(0), :pos(5), :hash(Map.new((:URI(Match.new(:orig("http:"), :from(0), :pos(5), :hash(Map.new((:hier-part(Match.new(:orig("http:"), :from(5), :pos(5), :hash(Map.new((:path-empty(Match.new(:orig("http:"), :from(5), :pos(5)))))))),:scheme(Match.new(:orig("http:"), :from(0), :pos(4)))))))))))))))))), match-prefix => Bool::False, path => URI::Path.new(path => "", segments => ("",)), scheme => "http", authority => URI::Authority, query => URI::Query.new(hash-format => HashFormat::Lists), fragment => "")
Which is apparently the right behavior
The proof of concept of this is just to run either of these
The output received is:
Whatever the correct behavior ought to be for these URI's, throwing out an uninit warning is not right.