[Seaside-dev] Character >> #seasideInteger

Philippe Marschall philippe.marschall at gmail.com
Sun Apr 19 14:58:25 UTC 2009


Hi

In response to [1] there is now #seasideInteger on Character which is
supposed to return the Unicode code point. Now there are as well some
mean tests ;-) They utf-8 decode a series of bytes into a Character
using WACodec and send #seasideInteger to the answer. This has the
advantage that only ASCII characters are present in the source code
but non-ASCII characters are tested. Additionally it tests your utf-8
implementation ;-) The test does this for characters that take up 1,
2, 3 *and* 4 bytes in utf-8. I'm not sure characters with a code point
bigger than 65535 work on every dialect. However the tests should
point out such issues fairly quickly.

If you feel you're being treated unfairly the Squeak specific tests
additionally cover leadingChar for unified Han ideographs ;-)

 [1] http://code.google.com/p/seaside/issues/detail?id=303

Cheers
Philippe


More information about the seaside-dev mailing list