This commit is contained in:
Looly 2022-02-28 18:32:16 +08:00
parent ac4bfca6bb
commit b73728f956

View File

@ -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";