W3C home > Mailing lists > Public > uri@w3.org > April 2004

Re: test cases and implementation reports

From: Graham Klyne <GK@ninebynine.org>
Date: Wed, 21 Apr 2004 15:46:49 +0100
Message-Id: <>
To: uri@w3.org

At 18:57 19/04/04 -0700, Roy T. Fielding wrote:
>If you have a URI syntax implementation (client, server,
>whatever), please test it for consistency with the given
>test cases (and any other tests that you wish to come up with
>based on draft 05) and send the results to this list.

In the process of revisiting my implementation, I've extracted all of my 
test cases (which include those in the spec, and many more) into an 
external description using RDF [1], and developed a new test harness to be 
driven by the test descriptions rather than by hand-coded test cases.  I 
think it would be possible (and not too hard) to generate test code for a 
variety of different platforms from the RDF data.

At this time, I still have to revise my code to bring it in line with the 
final decision on handling of leading dot segments.  Otherwise, all tests 
are passed OK [2].



[2]  URITest> main
### Failure in: 195
expected: "http://a/g"
but got: "http://a/../g"
### Failure in: 197
expected: "http://a/g"
but got: "http://a/../../g"
### Failure in: 198
expected: "http://a/g"
but got: "http://a/../g"
### Failure in: 235
expected: "foo:"
but got: "foo:.."
Cases: 513  Tried: 513  Errors: 0  Failures: 4


Graham Klyne
For email:
Received on Wednesday, 21 April 2004 11:15:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:07 UTC