[Expat-checkins] expat/tests runtests.c,1.25,1.26
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Mon Jul 22 10:50:05 2002
Update of /cvsroot/expat/expat/tests
In directory usw-pr-cvs1:/tmp/cvs-serv5541
Modified Files:
runtests.c
Log Message:
make_basic_suite(): Simplify the organization of the test cases into
just two groups: "basic" (no namespaces) and "namespace".
Rename one test function so it's name makes more sense, and is
shorter.
Index: runtests.c
===================================================================
RCS file: /cvsroot/expat/expat/tests/runtests.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- runtests.c 22 Jul 2002 17:15:48 -0000 1.25
+++ runtests.c 22 Jul 2002 17:49:17 -0000 1.26
@@ -497,7 +497,7 @@
return 0;
}
-START_TEST(test_xmldecl_unknown_encoding_internal_entity)
+START_TEST(test_unknown_encoding_internal_entity)
{
char *text =
"<?xml version='1.0' encoding='unsupported-encoding'?>\n"
@@ -666,44 +666,32 @@
make_basic_suite(void)
{
Suite *s = suite_create("basic");
- TCase *tc_chars = tcase_create("character tests");
- TCase *tc_attrs = tcase_create("attributes");
- TCase *tc_xmldecl = tcase_create("XML declaration");
+ TCase *tc_basic = tcase_create("basic tests");
TCase *tc_namespace = tcase_create("XML namespaces");
- TCase *tc_elements = tcase_create("element events");
- suite_add_tcase(s, tc_chars);
- tcase_add_checked_fixture(tc_chars, basic_setup, basic_teardown);
- tcase_add_test(tc_chars, test_nul_byte);
- tcase_add_test(tc_chars, test_u0000_char);
- tcase_add_test(tc_chars, test_bom_utf8);
- tcase_add_test(tc_chars, test_bom_utf16_be);
- tcase_add_test(tc_chars, test_bom_utf16_le);
- tcase_add_test(tc_chars, test_illegal_utf8);
- tcase_add_test(tc_chars, test_utf16);
- tcase_add_test(tc_chars, test_latin1_umlauts);
+ suite_add_tcase(s, tc_basic);
+ tcase_add_checked_fixture(tc_basic, basic_setup, basic_teardown);
+ tcase_add_test(tc_basic, test_nul_byte);
+ tcase_add_test(tc_basic, test_u0000_char);
+ tcase_add_test(tc_basic, test_bom_utf8);
+ tcase_add_test(tc_basic, test_bom_utf16_be);
+ tcase_add_test(tc_basic, test_bom_utf16_le);
+ tcase_add_test(tc_basic, test_illegal_utf8);
+ tcase_add_test(tc_basic, test_utf16);
+ tcase_add_test(tc_basic, test_latin1_umlauts);
/* Regression test for SF bug #491986. */
- tcase_add_test(tc_chars, test_danish_latin1);
+ tcase_add_test(tc_basic, test_danish_latin1);
/* Regression test for SF bug #514281. */
- tcase_add_test(tc_chars, test_french_charref_hexidecimal);
- tcase_add_test(tc_chars, test_french_charref_decimal);
- tcase_add_test(tc_chars, test_french_latin1);
- tcase_add_test(tc_chars, test_french_utf8);
- tcase_add_test(tc_chars, test_line_count);
- tcase_add_test(tc_chars, test_really_long_lines);
-
- suite_add_tcase(s, tc_elements);
- tcase_add_checked_fixture(tc_elements, basic_setup, basic_teardown);
- tcase_add_test(tc_elements, test_end_element_events);
-
- suite_add_tcase(s, tc_attrs);
- tcase_add_checked_fixture(tc_attrs, basic_setup, basic_teardown);
- tcase_add_test(tc_attrs, test_attr_whitespace_normalization);
-
- suite_add_tcase(s, tc_xmldecl);
- tcase_add_checked_fixture(tc_xmldecl, basic_setup, basic_teardown);
- tcase_add_test(tc_xmldecl, test_xmldecl_misplaced);
- tcase_add_test(tc_xmldecl, test_xmldecl_unknown_encoding_internal_entity);
+ tcase_add_test(tc_basic, test_french_charref_hexidecimal);
+ tcase_add_test(tc_basic, test_french_charref_decimal);
+ tcase_add_test(tc_basic, test_french_latin1);
+ tcase_add_test(tc_basic, test_french_utf8);
+ tcase_add_test(tc_basic, test_line_count);
+ tcase_add_test(tc_basic, test_really_long_lines);
+ tcase_add_test(tc_basic, test_end_element_events);
+ tcase_add_test(tc_basic, test_attr_whitespace_normalization);
+ tcase_add_test(tc_basic, test_xmldecl_misplaced);
+ tcase_add_test(tc_basic, test_unknown_encoding_internal_entity);
suite_add_tcase(s, tc_namespace);
tcase_add_checked_fixture(tc_namespace,