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,12 @@
//file
package demo;
import java.util.HashMap;
class Test {
void main() {
HashMap<String, Integer> commonMap = new HashMap<String, Integer>();
HashMap rawMap = new HashMap<String, Integer>();
HashMap superRawMap = new HashMap();
}
}
@@ -0,0 +1,12 @@
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K, V>() Please specify it explicitly.
package demo
import java.util.HashMap
class Test {
fun main() {
val commonMap = HashMap<String, Int>()
val rawMap = HashMap<String, Int>()
val superRawMap = HashMap()
}
}
@@ -0,0 +1,16 @@
//file
package demo;
class Collection<E> {
Collection(E e) {
System.out.println(e);
}
}
class Test {
void main() {
Collection raw1 = new Collection(1);
Collection raw2 = new Collection<Integer>(1);
Collection raw3 = new Collection<String>("1");
}
}
@@ -0,0 +1,15 @@
package demo
class Collection<E>(e: E) {
{
System.out.println(e)
}
}
class Test {
fun main() {
val raw1 = Collection(1)
val raw2 = Collection(1)
val raw3 = Collection("1")
}
}
@@ -0,0 +1,13 @@
//file
package demo;
import java.util.List;
import java.util.ArrayList;
class Test {
void main() {
List<String> common = new ArrayList<String>();
List raw = new ArrayList<String>();
List superRaw = new ArrayList();
}
}
@@ -0,0 +1,12 @@
// ERROR: Type inference failed: Not enough information to infer parameter E in constructor ArrayList<E>() Please specify it explicitly.
package demo
import java.util.ArrayList
class Test {
fun main() {
val common = ArrayList<String>()
val raw = ArrayList<String>()
val superRaw = ArrayList()
}
}
@@ -0,0 +1,15 @@
//file
package demo;
class TestT {
<T> void getT() { }
}
class U {
void main() {
TestT t = new TestT();
t.<String>getT();
t.<Integer>getT();
t.getT();
}
}
@@ -0,0 +1,15 @@
package demo
class TestT {
fun <T> getT() {
}
}
class U {
fun main() {
val t = TestT()
t.getT<String>()
t.getT<Int>()
t.getT<Any>()
}
}