[prev in list] [next in list] [prev in thread] [next in thread] 

List:       expat-cvs
Subject:    [Expat-checkins] CVS: expat/tests runtests.c,1.13,1.14
From:       "Fred L. Drake" <fdrake () users ! sourceforge ! net>
Date:       2002-04-22 18:50:20
[Download RAW message or body]

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='ä ö ü &#228; &#246; &#252; &#x00E4; &#x0F6; &#xFC;'\n"
+         "  >ä ö ü &#228; &#246; &#252; &#x00E4; &#x0F6; &#xFC;</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);


_______________________________________________
Expat-checkins mailing list
Expat-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/expat-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic