/**
* Testa diversos casos de strings utf-8: com caracteres de 1, 2 e 3 bytes
*/
@Test
public final void testStrBytesConversions() throws UTFDataFormatException {
String[] data = { "pàpêpípõpü",
"\t \n \r",
"",
" ",
"ЊДОШПЦФ",
"ดตญทธยษส",
"ヅテガシジツミポブ",
"สçヅยãテОガ;ธ§Д" };
for (String str : data) {
assertEquals(str, TextStacker.toStr(TextStacker.toBytes(str)));
}
}
TextStackerTest.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:filestacker
作者:
评论列表
文章目录