W3C home > Mailing lists > Public > www-webont-wg@w3.org > October 2003

Re: Additional tests for cyclic structures

From: Sean Bechhofer <seanb@cs.man.ac.uk>
Date: Thu, 2 Oct 2003 15:15:11 +0100 (GMT Daylight Time)
To: Jeremy Carroll <jjc@hpl.hp.com>
Cc: www-webont-wg@w3.org
Message-ID: <Pine.WNT.4.44.0310021039230.2340-100000@potato>

On Mon, 29 Sep 2003, Jeremy Carroll wrote:

>
>
> I earlier reported that my code did not pass the test for cyclic structures:
>
> http://www.w3.org/2002/03owlt/editors-draft/draft/byIssue#I5.26-006
>
> I fixed my code today. As I was half way through fixing the code, it passed
> that test and did not fail any others (well that part of the code).
>
> A colleague argues that you should only write code to pass tests - so I wrote
> a few more tests to fail before writing the half of the cycle detection fix
> to my code.
>
> These are:
>   I5.26-008
>     A cycle of unnamed individuals
> http://www.w3.org/2002/03owlt/editors-draft/draft/proposedByIssue#I5.26-008
>
>   I5.5-005
>    Well formed list comprehension
> http://www.w3.org/2002/03owlt/editors-draft/draft/proposedByIssue#I5.5-005
>   I5.5-006
>    A cylic list
> http://www.w3.org/2002/03owlt/editors-draft/draft/proposedByIssue#I5.5-006
>   I5.5-007
>    A list with itself inside an element.
> http://www.w3.org/2002/03owlt/editors-draft/draft/proposedByIssue#I5.5-007
>
> The last three also investigate further the list comprehension rules.
>
> (My code failed those tests and so I fixed it).
>
> I imagine parsers such as Sean's and Peter's code cope with these no problem.

You have a somewhat over-active imagination, Jeremy :-). Well, it works
now, anyway. I have also added some minor fixes and regenerated test
results based on the latest test manifest.

In the spirit of transparency, I have added a simple test harness to our
servlet interface [1]. If you provide the servlet with the URI of a test
manifest, it will report on whether or not it thinks it passes the syntax
validation of the test (along with some diagnostic information as to why
it has/hasn't).

If anyone tries this and discovers any unexpected failures (or disagrees
with the explanations), do please let me know...

Cheers,

	Sean

[1] http://phoebus.cs.man.ac.uk:9999/OWL/TestValidator

-- 
Sean Bechhofer
seanb@cs.man.ac.uk
http://www.cs.man.ac.uk/~seanb
Received on Thursday, 2 October 2003 10:14:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:58:02 GMT