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