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 db3000b142
commit faaa94d20a

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\";@"));
}
}