ASF Bugzilla – Attachment 5721 Details for
Bug 18837
[PATCH]StringUtil#getFromUnicode() has a bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase to find this problem.
StringUtilTest.java (text/plain), 693 bytes, created by
Toshiaki Kamoshida
on 2003-04-09 04:02:41 UTC
(
hide
)
Description:
Testcase to find this problem.
Filename:
MIME Type:
Creator:
Toshiaki Kamoshida
Created:
2003-04-09 04:02:41 UTC
Size:
693 bytes
patch
obsolete
>import junit.framework.TestCase; >import org.apache.poi.util.StringUtil; > >/** > * @author T.Kamoshida > * @version date > */ >public class StringUtilTest extends TestCase { > > /** > * Constructor for StringUtilTest. > * @param arg0 > */ > public StringUtilTest(String arg0) { > super(arg0); > } > > public void testGetFromUnicode(){ > try{ > > assertEquals("\u30c6",StringUtil.getFromUnicode("\u30c6".getBytes("UTF-16BE"))); > } > catch(Exception e){fail(e.getMessage());} > } > > public void testGetFromUnicodeHigh(){ > try{ > > assertEquals("\u30c6",StringUtil.getFromUnicodeHigh("\u30c6".getBytes("UTF-16LE"))); > } > catch(Exception e){fail(e.getMessage());} > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 18837
: 5721 |
5722
|
5735
|
5786