void () { assertEquals("1f", LiteralFormatUtil.format("1f", PsiTypes.floatType())); assertEquals("123f", LiteralFormatUtil.format("123f", PsiTypes.floatType())); assertEquals("1_234f", LiteralFormatUtil.format("1234f", PsiTypes.floatType())); assertEquals("1_234d", LiteralFormatUtil.format("1234d", PsiTypes.doubleType())); assertEquals("1.", LiteralFormatUtil.format("1.", PsiTypes.doubleType())); assertEquals("1.f", LiteralFormatUtil.format("1.f", PsiTypes.floatType())); assertEquals("123.", LiteralFormatUtil.format("123.", PsiTypes.doubleType())); assertEquals("123.f", LiteralFormatUtil.format("123.f", PsiTypes.floatType())); assertEquals("1_234.", LiteralFormatUtil.format("1234.", PsiTypes.doubleType())); assertEquals("1_234.d", LiteralFormatUtil.format("1234.d", PsiTypes.floatType())); assertEquals("1_234.f", LiteralFormatUtil.format("1234.f", PsiTypes.floatType())); assertEquals(".1", LiteralFormatUtil.format(".1", PsiTypes.doubleType())); assertEquals(".1f", LiteralFormatUtil.format(".1f", PsiTypes.floatType())); assertEquals(".123", LiteralFormatUtil.format(".123", PsiTypes.doubleType())); assertEquals(".123f", LiteralFormatUtil.format(".123f", PsiTypes.floatType())); assertEquals(".123_4", LiteralFormatUtil.format(".1234", PsiTypes.doubleType())); assertEquals(".123_4f", LiteralFormatUtil.format(".1234f", PsiTypes.floatType())); assertEquals(".123_456", LiteralFormatUtil.format(".123456", PsiTypes.doubleType())); assertEquals(".123_456d", LiteralFormatUtil.format(".123456d", PsiTypes.doubleType())); assertEquals(".123_456f", LiteralFormatUtil.format(".123456f", PsiTypes.floatType())); assertEquals("1.1", LiteralFormatUtil.format("1.1", PsiTypes.doubleType())); assertEquals("1.1f", LiteralFormatUtil.format("1.1f", PsiTypes.floatType())); assertEquals("123.123", LiteralFormatUtil.format("123.123", PsiTypes.doubleType())); assertEquals("123.123f", LiteralFormatUtil.format("123.123f", PsiTypes.floatType())); assertEquals("1_234.123_4", LiteralFormatUtil.format("1234.1234", PsiTypes.doubleType())); assertEquals("1_234.123_4f", LiteralFormatUtil.format("1234.1234f", PsiTypes.floatType())); assertEquals("1.1e0", LiteralFormatUtil.format("1.1e0", PsiTypes.doubleType())); assertEquals("1.1E0f", LiteralFormatUtil.format("1.1E0f", PsiTypes.floatType())); assertEquals("123.123e+123", LiteralFormatUtil.format("123.123e+123", PsiTypes.doubleType())); assertEquals("123.123e-123f", LiteralFormatUtil.format("123.123e-123f", PsiTypes.floatType())); assertEquals("1_234.123_4e1_000", LiteralFormatUtil.format("1234.1234e1000", PsiTypes.doubleType())); assertEquals("1_234.123_4e1_000f", LiteralFormatUtil.format("1234.1234e1000f", PsiTypes.floatType())); }