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:
@@ -0,0 +1,15 @@
|
||||
import java.util.*
|
||||
public open class ForEach() {
|
||||
public open fun test() : Unit {
|
||||
val xs = ArrayList<Any>()
|
||||
val ys = LinkedList<Any>()
|
||||
for (x in xs)
|
||||
{
|
||||
ys.add(x)
|
||||
}
|
||||
for (y in ys)
|
||||
{
|
||||
xs.add(y)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
//file
|
||||
import java.util.*;
|
||||
|
||||
public class ForEach {
|
||||
@@ -0,0 +1,13 @@
|
||||
import java.util.*
|
||||
public open class Lists() {
|
||||
public open fun test() : Unit {
|
||||
val xs = ArrayList<Any>()
|
||||
val ys = LinkedList<Any>()
|
||||
val zs = ArrayList<Any>()
|
||||
xs.add(null)
|
||||
ys.add(null)
|
||||
xs.clear()
|
||||
ys.clear()
|
||||
zs.add(null)
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
//file
|
||||
import java.util.*;
|
||||
|
||||
public class Lists {
|
||||
Reference in New Issue
Block a user