Parse floats with 'F' or 'f' suffix

This commit is contained in:
Natalia Ukhorskaya
2013-12-04 13:31:07 +04:00
parent fb9a7e3c4c
commit b6ce6c5e5a
12 changed files with 629 additions and 402 deletions
@@ -2749,6 +2749,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/evaluate/binaryMinusIndependentExpType.kt");
}
@TestMetadata("float.kt")
public void testFloat() throws Exception {
doTest("compiler/testData/diagnostics/tests/evaluate/float.kt");
}
@TestMetadata("intOverflow.kt")
public void testIntOverflow() throws Exception {
doTest("compiler/testData/diagnostics/tests/evaluate/intOverflow.kt");
@@ -1384,6 +1384,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/constants/constantsInWhen.kt");
}
@TestMetadata("float.kt")
public void testFloat() throws Exception {
doTest("compiler/testData/codegen/box/constants/float.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/controlStructures")
@@ -53,6 +53,11 @@ public class EvaluateExpressionTestGenerated extends AbstractEvaluateExpressionT
doConstantTest("compiler/testData/evaluate/constant/equals.kt");
}
@TestMetadata("float.kt")
public void testFloat() throws Exception {
doConstantTest("compiler/testData/evaluate/constant/float.kt");
}
@TestMetadata("floatsAndDoubles.kt")
public void testFloatsAndDoubles() throws Exception {
doConstantTest("compiler/testData/evaluate/constant/floatsAndDoubles.kt");
@@ -162,6 +162,11 @@ public class JetParsingTestGenerated extends AbstractJetParsingTest {
doParsingTest("compiler/testData/psi/FileStart_ERR.kt");
}
@TestMetadata("FloatingPointLiteral.kt")
public void testFloatingPointLiteral() throws Exception {
doParsingTest("compiler/testData/psi/FloatingPointLiteral.kt");
}
@TestMetadata("ForWithMultiDecl.kt")
public void testForWithMultiDecl() throws Exception {
doParsingTest("compiler/testData/psi/ForWithMultiDecl.kt");