j2k: flatten test cases and testData directory structure

Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
This commit is contained in:
Alexander Udalov
2015-01-03 00:49:40 +03:00
parent ed2f123b54
commit 3c859caf2b
1137 changed files with 1417 additions and 1412 deletions
@@ -0,0 +1,29 @@
//file
// !openByDefault: true
class A {
void foo1() { }
private void foo2(){}
final void foo3(){}
}
final class B {
void foo(){}
}
abstract class C {
abstract void foo();
}
interface I{
void foo();
}
class D implements I {
@Override
public void foo() { }
}
enum E {
int foo() { return 0; }
}
@@ -0,0 +1,36 @@
// !openByDefault: true
open class A {
open fun foo1() {
}
private fun foo2() {
}
fun foo3() {
}
}
class B {
fun foo() {
}
}
abstract class C {
abstract fun foo()
}
trait I {
public fun foo()
}
open class D : I {
override fun foo() {
}
}
enum class E {
fun foo(): Int {
return 0
}
}
@@ -0,0 +1,11 @@
//file
// !specifyFieldTypeByDefault: true
import org.jetbrains.annotations.Nullable;
import java.util.*;
class A {
private final List<String> field1 = new ArrayList<String>();
final List<String> field2 = new ArrayList<String>();
public final int field3 = 0;
protected final int field4 = 0;
}
@@ -0,0 +1,9 @@
// !specifyFieldTypeByDefault: true
import java.util.*
class A {
private val field1: List<String> = ArrayList()
val field2: List<String> = ArrayList()
public val field3: Int = 0
protected val field4: Int = 0
}
@@ -0,0 +1,6 @@
//method
// !specifyLocalVariableTypeByDefault: true
public void foo() {
int i = 1;
String s = "";
}
@@ -0,0 +1,5 @@
// !specifyLocalVariableTypeByDefault: true
public fun foo() {
val i: Int = 1
val s: String = ""
}
@@ -0,0 +1,10 @@
//method
// !specifyLocalVariableTypeByDefault: true
public void foo(List<String> list) {
int[] array = new int[10];
for (int i = 0; i < 10; i++){
array[i] = i;
}
for(String s : list) System.out.print(s);
}
@@ -0,0 +1,9 @@
// !specifyLocalVariableTypeByDefault: true
public fun foo(list: List<String>) {
val array: IntArray = IntArray(10)
for (i: Int in 0..10 - 1) {
array[i] = i
}
for (s: String in list) System.out.print(s)
}