void () { assertEquals("0", LiteralFormatUtil.format("0", PsiTypes.intType())); assertEquals("12", LiteralFormatUtil.format("12", PsiTypes.intType())); assertEquals("123", LiteralFormatUtil.format("123", PsiTypes.intType())); assertEquals("123L", LiteralFormatUtil.format("123L", PsiTypes.intType())); assertEquals("1_234", LiteralFormatUtil.format("1234", PsiTypes.intType())); assertEquals("123_456", LiteralFormatUtil.format("123456", PsiTypes.intType())); assertEquals("1_234_567_890l", LiteralFormatUtil.format("1234567890l", PsiTypes.longType())); assertEquals("0x", LiteralFormatUtil.format("0x", PsiTypes.intType())); assertEquals("0xL", LiteralFormatUtil.format("0xL", PsiTypes.longType())); assertEquals("0x1L", LiteralFormatUtil.format("0x1L", PsiTypes.longType())); assertEquals("0x1234", LiteralFormatUtil.format("0x1234", PsiTypes.intType())); assertEquals("0x1234l", LiteralFormatUtil.format("0x1234l", PsiTypes.longType())); assertEquals("0x1_abcd", LiteralFormatUtil.format("0x1abcd", PsiTypes.intType())); assertEquals("07", LiteralFormatUtil.format("07", PsiTypes.intType())); assertEquals("0_777", LiteralFormatUtil.format("0777", PsiTypes.intType())); assertEquals("077_777", LiteralFormatUtil.format("077777", PsiTypes.intType())); assertEquals("0b", LiteralFormatUtil.format("0b", PsiTypes.intType())); assertEquals("0b1010", LiteralFormatUtil.format("0b1010", PsiTypes.intType())); assertEquals("0b0_1010", LiteralFormatUtil.format("0b01010", PsiTypes.intType())); assertEquals("0b1010_1010", LiteralFormatUtil.format("0b10101010", PsiTypes.intType())); assertEquals("0b1010_1010L", LiteralFormatUtil.format("0b10101010L", PsiTypes.longType())); }