>>>>> "Peter" == Peter Van Eynde <pvaneynd@...> writes:
Peter> On Mon, Jul 08, 2002 at 12:26:38PM -0400, Raymond Toy wrote:
>>
>> I've run the ansi test suite for the first time and have a few
>> questions about the various tests.
Peter> Good. Notice that I don't claim the test is perfect. Far from it.
>> o What is the purpose of the character name tests
>> (CHARACTERS-WITHOUT-GOOD-NAMES)? Are names required for all of the
>> possible characters? I couldn't find anything that says so.
Peter> See (on a debian machine):
Peter> file:///usr/share/doc/hyperspec/Body/26_glo_n.htm#name
Peter> (go to 13.1.7 in the hyperspec and click on names)
Peter> name
Peter> ...
Peter> 5. n. (of a character) a string that names the character and that has
Peter> length greater than one. (All non-graphic characters are required to
Peter> have names unless they have some implementation-defined attribute
Peter> which is not null. Whether or not other characters have names is
Peter> implementation-dependent.)
Peter> as (code-char 65) doesn't have a name I fear we break the standard, not?
After looking around some more, I think if graphic-char-p is T, then
we aren't required to have a name. So I think this test should really
be:
(check-for-bug :characters-without-good-names
(let ((wrong-codes nil))
(dotimes
(code char-code-limit)
(let ((c (code-char code)))
(unless (or (graphic-char-p c)
(eql c (name-char (char-name c))))
(push code wrong-codes))))
(nreverse wrong-codes))
NIL)
But perhaps the intent here is that you really WANT names for all
characters, in which case, the original is ok.
Ray
|