mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add test
This commit is contained in:
parent
ac4bfca6bb
commit
b73728f956
@ -65,6 +65,14 @@ public class ConvertTest {
|
||||
Assert.assertEquals("a", result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toStrTest4() {
|
||||
// 被当作八进制
|
||||
@SuppressWarnings("OctalInteger")
|
||||
final String result = Convert.toStr(001200);
|
||||
Assert.assertEquals("640", result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toIntTest() {
|
||||
String a = " 34232";
|
||||
|
Loading…
x
Reference in New Issue
Block a user