view nt/ad2c.sed @ 4889:1fbf8bffa545

Add Unicode-case-table-based torture test to case-tests.el -------------------- ChangeLog entries follow: -------------------- tests/ChangeLog addition: 2010-01-27 Ben Wing <ben@xemacs.org> * automated/case-tests.el: * automated/case-tests.el (char-as-unicode-escape): New. Add a "torture test" that uses the full set of lower-upper case mappings from Unicode. See whether strings composed of all lower-case characters across all languages will correctly be uppercased to the string equivalent to all uppercase characters, and vice-versa, and whether you can correctly do a case-folding search in a buffer for these characters, all at once or individually. Result: a number of assertion failures.
author Ben Wing <ben@xemacs.org>
date Wed, 27 Jan 2010 05:27:02 -0600
parents 4be1180a9e89
children
line wrap: on
line source

/^!/d
/^$/d
s/\\/\\\\/g
s/\\$//g
s/"/\\"/g
s/^/(String) "/
: test
/\\$/b slash
s/$/",/
p
d
: slash
n
/^!/d
/^$/d
s/"/\\"/g
s/\\\\/\\/g
s/\\n/\\\\n/g
s/\\t/\\\\t/g
s/\\f/\\\\f/g
s/\\b/\\\\b/g
b test