This commit is contained in:
Looly
2022-11-03 23:37:48 +08:00
parent b696ad4b08
commit 3b1a375096
4 changed files with 31 additions and 6 deletions

View File

@@ -212,4 +212,10 @@ public class CharSequenceUtilTest {
final String result = StrUtil.replaceFirst(str, "YES", "", true);
Assert.assertEquals(result, " and yes i do");
}
@Test
public void issueI5YN49Test() {
final String str = "A5E6005700000000000000000000000000000000000000090D0100000000000001003830";
Assert.assertEquals("38", StrUtil.subByLength(str,-2,2));
}
}