Converter tests:

Use generated tests approach in converter tests

Introduce two seperate generated test cases of each of configurations, all tests are generated in both test cases
Test data for plugin configuration has extension "ide.kt", for basic configuration "*.kt"
Test data file is used to determine type of the test (file/class/expression/...) instead of directory, all test data is moved accordingly
Add abstract base classes for generated tests
Rename test folder "file" to "misc" (for the lack of imagination)
This commit is contained in:
Pavel V. Talanov
2013-11-16 16:30:24 +04:00
parent cba8d3b6db
commit 82b19499e3
1091 changed files with 7197 additions and 230 deletions
@@ -0,0 +1 @@
Foo(param)
@@ -0,0 +1 @@
Foo(param1, param2)
@@ -0,0 +1,2 @@
//expression
new Foo();
@@ -0,0 +1 @@
Foo()
@@ -1 +0,0 @@
new Foo();
@@ -0,0 +1,6 @@
package test
open class User() {
open fun main() : Unit {
val list = java.util.LinkedList()
}
}
@@ -0,0 +1,6 @@
package test
open class User() {
open fun main() : Unit {
val list = java.util.LinkedList()
}
}
@@ -0,0 +1,6 @@
import java.util.LinkedList
open class User() {
open fun main() : Unit {
val list = LinkedList<String>()
}
}
@@ -1,3 +1,4 @@
//file
import java.util.List;
import java.util.LinkedList;
@@ -0,0 +1,8 @@
package org.test
open class Library() {
}
open class User() {
open fun main() : Unit {
val lib = Library()
}
}
@@ -0,0 +1,5 @@
object : Runnable() {
public override fun run() : Unit {
System.out.println("Run")
}
}
@@ -0,0 +1,11 @@
package org.test
open class OuterClass() {
open class InnerClass() {
}
}
open class User() {
open fun main() : Unit {
val outerObject = OuterClass()
val innerObject = outerObject.InnerClass()
}
}
@@ -1,3 +1,4 @@
//file
package org.test;
class OuterClass {
@@ -0,0 +1,10 @@
package org.test
import java.util.LinkedList
open class Member() {
}
open class User() {
open fun main() : Unit {
val members = LinkedList<Member>()
members.add(Member())
}
}
@@ -0,0 +1,12 @@
package demo
open class Foo() {
class object {
open class Bar() {
}
}
}
open class User() {
open fun main() : Unit {
val boo = Foo.Bar()
}
}