Added test with all types of constants.

This commit is contained in:
Evgeny Gerashchenko
2014-06-20 17:50:26 +04:00
parent bf442a9700
commit 3ee92da6f0
6 changed files with 67 additions and 0 deletions
@@ -32,6 +32,11 @@ import org.jetbrains.jet.jps.build.AbstractIncrementalJpsTest;
@SuppressWarnings("all")
@TestMetadata("jps-plugin/testData/incremental")
public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
@TestMetadata("allConstants")
public void testAllConstants() throws Exception {
doTest("jps-plugin/testData/incremental/allConstants/");
}
public void testAllFilesPresentInIncremental() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("jps-plugin/testData/incremental"), Pattern.compile("^([^\\.]+)$"), false);
}
@@ -0,0 +1,22 @@
Cleaning output files:
out/production/module/test/TestPackage-const-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/const.kt
End of files
Cleaning output files:
out/production/module/test/TestPackage-const-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/const.kt
End of files
Cleaning output files:
out/production/module/test/Usage.class
End of files
Compiling files:
src/usage.kt
End of files
@@ -0,0 +1,12 @@
package test
val b: Byte = 100
val s: Short = 20000
val i: Int = 2000000
val l: Long = 2000000000000L
val f: Float = 3.14f
val d: Double = 3.14
val bb: Boolean = true
val c: Char = '\u03c0' // pi symbol
val str: String = ":)"
@@ -0,0 +1,12 @@
package test
val b: Byte = 50 + 50
val s: Short = 10000 + 10000
val i: Int = 1000000 + 1000000
val l: Long = 1000000000000L + 1000000000000L
val f: Float = 0.0f + 3.14f
val d: Double = 0.0 + 3.14
val bb: Boolean = !false
val c: Char = '\u03c0' // pi symbol
val str: String = ":)"
@@ -0,0 +1,12 @@
package test
val b: Byte = 0
val s: Short = 0
val i: Int = 0
val l: Long = 0
val f: Float = 0.0f
val d: Double = 0.0
val bb: Boolean = false
val c: Char = 'x'
val str: String = ":("
@@ -0,0 +1,4 @@
package test
deprecated("$b $s $i $l $f $d $bb $c $str")
class Usage