URI resolving tests for .Net Uri class

I got a friend to run these, he used:

  Microsoft (R) Visual C# .NET Compiler version 7.00.9466
  for Microsoft (R) .NET Framework version 1.0.3705

and the System.Uri class method MakeRelative

these are the results, after those Jeremy posted in
  http://lists.w3.org/Archives/Public/w3c-rdfcore-wg/2002Mar/0301.html

Dave


Base URI     : "http://example.org/dir/file"
Relative URI : "../relfile"
Result URI   : "http://example.org/relfile"

Base URI     : "http://example.org/dir/file"
Relative URI : "/absfile"
Result URI   : "http://example.org/absfile"

Base URI     : "http://example.org/dir/file"
Relative URI : "//another.example.org/absfile"
Result URI   : "http://another.example.org/absfile"

Base URI     : "http://example.org/dir/file"
Relative URI : "../../../relfile"
Result URI   : "http://example.org/../../relfile"

Base URI     : "http://example.org/dir/file"
Relative URI : ""
Result URI   : "http://example.org/dir/file"

Base URI     : "http://example.org/dir/file"
Relative URI : "#frag"
Result URI   : "http://example.org/dir/file#frag"

Base URI     : "http://example.org"
Relative URI : "relfile"
Result URI   : "http://example.org/relfile"

Base URI     : "http://example.org/dir/file#frag"
Relative URI : "relfile"
Result URI   : "http://example.org/dir/relfile"

Base URI     : "http://example.org/dir/file#frag"
Relative URI : "#foo"
Result URI   : "http://example.org/dir/file#foo"

Base URI     : "http://example.org/dir/file#frag"
Relative URI : ""
Result URI   : "http://example.org/dir/file#frag"

Base URI     : "mailto:foo@example.com"
Relative URI : "#foo"
Result URI   : "mailto:foo@example.com#foo"

Base URI     : "mailto:foo@example.com"
Relative URI : ""
Result URI   : "mailto:foo@example.com"

Base URI     : "mailto:foo@example.com"
Relative URI : "relfile"
Result URI   : "mailto:foo@example.comrelfile"

Received on Friday, 5 July 2002 14:34:01 UTC