escape unicode chars

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2017-02-11 09:49:52 +00:00
parent 9f7e5c3108
commit d98b5d646f
1 changed files with 6 additions and 6 deletions

View File

@ -111,16 +111,16 @@ public class TestDateUtil {
assertTrue(DateUtil.isADateFormat(186, "[$-409]mmmmm\\-yy;@"));
// Cell show "2016年12月8日"
assertTrue(DateUtil.isADateFormat(165, "yyyy\"\"m\"\"d\"\";@"));
assertTrue(DateUtil.isADateFormat(165, "yyyy\"\u5e74\"m\"\u6708\"d\"\u65e5\";@"));
// Cell show "2016年12月"
assertTrue(DateUtil.isADateFormat(164, "yyyy\"\"m\"\";@"));
assertTrue(DateUtil.isADateFormat(164, "yyyy\"\u5e74\"m\"\u6708\";@"));
// Cell show "12月8日"
assertTrue(DateUtil.isADateFormat(168, "m\"\"d\"\";@"));
assertTrue(DateUtil.isADateFormat(168, "m\"\u6708\"d\"\u65e5\";@"));
// Cell show "十二月八日"
assertTrue(DateUtil.isADateFormat(181, "[DBNum1][$-404]m\"\"d\"\";@"));
assertTrue(DateUtil.isADateFormat(181, "[DBNum1][$-404]m\"\u6708\"d\"\u65e5\";@"));
// Cell show "贰零壹陆年壹拾贰月捌日"
assertTrue(DateUtil.isADateFormat(177, "[DBNum2][$-804]yyyy\"\"m\"\"d\"\";@"));
assertTrue(DateUtil.isADateFormat(177, "[DBNum2][$-804]yyyy\"\u5e74\"m\"\u6708\"d\"\u65e5\";@"));
// Cell show "2016年12月8日"
assertTrue(DateUtil.isADateFormat(178, "[DBNum3][$-804]yyyy\"\"m\"\"d\"\";@"));
assertTrue(DateUtil.isADateFormat(178, "[DBNum3][$-804]yyyy\"\u5e74\"m\"\u6708\"d\"\u65e5\";@"));
}
}