W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > October 2011

Tests assume distinct output rows are a bad idea

From: Dave Beckett <dave@dajobe.org>
Date: Sun, 9 Oct 2011 10:48:24 -0700
Message-Id: <8E7A92EF-FBF0-46E4-9D64-238B3F3D6C70@dajobe.org>
To: public-rdf-dawg-comments@w3.org
A lot of the functions/* tests such as sha224-02 got unicode added recently which assumes the output result rows are distinct.  This broke many of my rasqal tests.

This is a bad idea for two reasons
1) you should not make this assumption
2) it does not distinguish the state of the two tests in the file - the \u form or the unicode form.  If something broke, you couldn't tell since only 1 result is expected

so instead of:
:s8 :str "\u98DF", "食" .

use
:s8 :str "\u98DF" .
:s9 :str  "食" .

and adjust the output results to suit

Thanks

Dave
Received on Sunday, 9 October 2011 17:48:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 9 October 2011 17:48:54 GMT