From d98b5d646f9a2f35d9ad799b682de57b1a19327b Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sat, 11 Feb 2017 09:49:52 +0000 Subject: [PATCH] escape unicode chars git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782568 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/usermodel/TestDateUtil.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/testcases/org/apache/poi/ss/usermodel/TestDateUtil.java b/src/testcases/org/apache/poi/ss/usermodel/TestDateUtil.java index 3a79c6181c..40dfd698fc 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/TestDateUtil.java +++ b/src/testcases/org/apache/poi/ss/usermodel/TestDateUtil.java @@ -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\";@")); } }