void test_hdml_meta_tag_001();
void test_hdml_font_tag_001();
+void test_hdml_font_tag_002();
void test_hdml_param_tag_001();
/* pend */
/* <font> */
/*=========================================================================*/
CU_add_test(hdml_suite, "test <font> 1." , test_hdml_font_tag_001);
+ CU_add_test(hdml_suite, "test <font> 2." , test_hdml_font_tag_002);
/*=========================================================================*/
/* <param> */
#undef TEST_STRING
#undef RESULT_STRING
}
+void test_hdml_font_tag_002()
+{
+#define TEST_STRING "<font size=\"1\">あああ</font>"
+#define RESULT_STRING "あああ"
+ char *ret;
+ char *tmp;
+ device_table spec;
+ chxjconvrule_entry entry;
+ cookie_t cookie;
+ apr_size_t destlen;
+ APR_INIT;
+
+ COOKIE_INIT(cookie);
+
+ SPEC_INIT(spec);
+ destlen = sizeof(TEST_STRING)-1;
+
+ tmp = chxj_encoding(&r, TEST_STRING, &destlen);
+ ret = chxj_convert_hdml(&r, &spec, tmp, destlen, &destlen, &entry, &cookie);
+ ret = chxj_rencoding(&r, ret, &destlen);
+ fprintf(stderr, "actual=[%s]\n", ret);
+ fprintf(stderr, "except=[%s]\n", RESULT_STRING);
+ CU_ASSERT(ret != NULL);
+ CU_ASSERT(strcmp(RESULT_STRING, ret) == 0);
+ CU_ASSERT(destlen == sizeof(RESULT_STRING)-1);
+
+ APR_TERM;
+#undef TEST_STRING
+#undef RESULT_STRING
+}
/*============================================================================*/
/* <PARAM> */
/*============================================================================*/