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:
parent
db3000b142
commit
faaa94d20a
@ -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\";@"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user