[Expat-checkins] CVS: expat/tests runtests.c,1.13,1.14
Fred L. Drake
fdrake@users.sourceforge.net
Mon Apr 22 11:51:02 2002
Update of /cvsroot/expat/expat/tests
In directory usw-pr-cvs1:/tmp/cvs-serv26540/tests
Modified Files:
runtests.c
Log Message:
Add a new test that demonstrates SF bug #481609 is invalid.
Index: runtests.c
===================================================================
RCS file: /cvsroot/expat/expat/tests/runtests.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** runtests.c 22 Apr 2002 18:46:00 -0000 1.13
--- runtests.c 22 Apr 2002 18:50:18 -0000 1.14
***************
*** 304,307 ****
--- 304,323 ----
END_TEST
+ /* Regression test for SF bug #481609. */
+ START_TEST(test_latin1_umlauts)
+ {
+ char *text =
+ "<?xml version='1.0' encoding='iso-8859-1'?>\n"
+ "<e a='ä ö ü ä ö ü ä ö ü'\n"
+ " >ä ö ü ä ö ü ä ö ü</e>";
+ char *utf8 =
+ "\xC3\xA4 \xC3\xB6 \xC3\xBC "
+ "\xC3\xA4 \xC3\xB6 \xC3\xBC "
+ "\xC3\xA4 \xC3\xB6 \xC3\xBC";
+ run_character_check(text, utf8);
+ run_attribute_check(text, utf8);
+ }
+ END_TEST
+
/* Helpers used by the following test; this checks any "attr" and "refs"
***************
*** 504,507 ****
--- 520,524 ----
tcase_add_test(tc_chars, test_illegal_utf8);
tcase_add_test(tc_chars, test_utf16);
+ tcase_add_test(tc_chars, test_latin1_umlauts);
/* Regression test for SF bug #491986. */
tcase_add_test(tc_chars, test_danish_latin1);