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,13 @@
package test;
public class Short {
public static Short valueOf(String value) {return new Short();}
}
class Test {
public static void test() {
Short.valueOf("1");
test.Short.valueOf("1");
java.lang.Short.valueOf("1");
}
}
@@ -0,0 +1,19 @@
package test
public class Short {
class object {
public fun valueOf(value: String): Short {
return Short()
}
}
}
class Test {
class object {
public fun test() {
test.Short.valueOf("1")
test.Short.valueOf("1")
java.lang.Short.valueOf("1")
}
}
}
@@ -0,0 +1,8 @@
//class
abstract class A {
abstract void callme();
void callmetoo() {
print("This is a concrete method.");
}
}
@@ -0,0 +1,7 @@
abstract class A {
abstract fun callme()
fun callmetoo() {
print("This is a concrete method.")
}
}
@@ -0,0 +1,13 @@
//class
abstract class Shape {
public String color;
public Shape() {
}
public void setColor(String c) {
color = c;
}
public String getColor() {
return color;
}
public abstract double area();
}
@@ -0,0 +1,4 @@
abstract class Shape {
public var color: String
public abstract fun area(): Double
}
@@ -0,0 +1,2 @@
//class
class Test {}
@@ -0,0 +1 @@
class Test
@@ -0,0 +1,2 @@
//class
final class T {void main() {}int i() {}String s() {}}
@@ -0,0 +1,10 @@
class T {
fun main() {
}
fun i(): Int {
}
fun s(): String {
}
}
@@ -0,0 +1,2 @@
//class
final class T {String a = "abc";int b = 10;}
@@ -0,0 +1,4 @@
class T {
var a = "abc"
var b = 10
}
@@ -0,0 +1,2 @@
//class
final class T {String a, b, c = "abc";}
@@ -0,0 +1,5 @@
class T {
var a: String
var b: String
var c = "abc"
}
@@ -0,0 +1,2 @@
//class
final class A {}
@@ -0,0 +1 @@
class A
@@ -0,0 +1,2 @@
//class
final class A extends Base implements I {}
@@ -0,0 +1 @@
class A : Base(), I
@@ -0,0 +1,2 @@
//class
final class A extends Base implements I0, I1, I2 {}
@@ -0,0 +1 @@
class A : Base(), I0, I1, I2
@@ -0,0 +1,2 @@
//class
final class Test {}
@@ -0,0 +1 @@
class Test
@@ -0,0 +1,2 @@
//class
final class Entry<K, V> {}
@@ -0,0 +1 @@
class Entry<K, V>
@@ -0,0 +1,3 @@
interface A {
class B {}
}
@@ -0,0 +1,3 @@
trait A {
public class B
}
@@ -0,0 +1,2 @@
//class
final class A { final class B {} }
@@ -0,0 +1,3 @@
class A {
inner class B
}
@@ -0,0 +1,7 @@
class A {
enum E {
A,
B,
C
}
}
@@ -0,0 +1,7 @@
class A {
enum class E {
A
B
C
}
}
@@ -0,0 +1,3 @@
class A {
interface I {}
}
@@ -0,0 +1,3 @@
class A {
trait I
}
@@ -0,0 +1,2 @@
//class
final class S { static class Inner {} }
@@ -0,0 +1,3 @@
class S {
class Inner
}
@@ -0,0 +1,2 @@
//class
class Test {}
@@ -0,0 +1 @@
class Test
@@ -0,0 +1,18 @@
package demo;
import java.util.HashMap;
class Test {
Test() { }
Test(String s) { }
}
class User {
void main() {
HashMap m = new HashMap(1);
HashMap m2 = new HashMap(10);
Test t1 = new Test();
Test t2 = new Test("");
}
}
@@ -0,0 +1,30 @@
// ERROR: 'internal fun Test(): demo.Test' is already defined in demo
// ERROR: 'public constructor Test()' is already defined in demo
// ERROR: Overload resolution ambiguity: internal fun Test(): demo.Test defined in demo public constructor Test() defined in demo.Test
// ERROR: Overload resolution ambiguity: internal fun Test(): demo.Test defined in demo public constructor Test() defined in demo.Test
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K, V>(p0: kotlin.Int) Please specify it explicitly.
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K, V>(p0: kotlin.Int) Please specify it explicitly.
// ERROR: Overload resolution ambiguity: internal fun Test(): demo.Test defined in demo public constructor Test() defined in demo.Test
package demo
import java.util.HashMap
fun Test(): Test {
return Test()
}
fun Test(s: String): Test {
return Test()
}
class Test
class User {
fun main() {
val m = HashMap(1)
val m2 = HashMap(10)
val t1 = Test()
val t2 = Test("")
}
}
@@ -0,0 +1,2 @@
//class
final class S { boolean sB() { return true; } static int myI = 10; }
@@ -0,0 +1,9 @@
class S {
fun sB(): Boolean {
return true
}
class object {
var myI = 10
}
}
@@ -0,0 +1,2 @@
//class
final class S { static boolean staticF() { return true; } }
@@ -0,0 +1,7 @@
class S {
class object {
fun staticF(): Boolean {
return true
}
}
}
@@ -0,0 +1,2 @@
//class
final class S { boolean sB() { return true; } static int sI() { return 1; } }
@@ -0,0 +1,11 @@
class S {
fun sB(): Boolean {
return true
}
class object {
fun sI(): Int {
return 1
}
}
}
@@ -0,0 +1,2 @@
//class
private class Test {}
@@ -0,0 +1 @@
private class Test
@@ -0,0 +1,4 @@
public class MyClass {
private void init(int arg1, int arg2, int arg3) {
}
}
@@ -0,0 +1,4 @@
public class MyClass {
private fun init(arg1: Int, arg2: Int, arg3: Int) {
}
}
@@ -0,0 +1,2 @@
//class
protected class Test {}
@@ -0,0 +1 @@
protected class Test
@@ -0,0 +1,2 @@
//class
public class Test {}
@@ -0,0 +1 @@
public class Test
@@ -0,0 +1,2 @@
//class
final class A extends Base {}
@@ -0,0 +1 @@
class A : Base()
@@ -0,0 +1,2 @@
//class
final class S { static boolean sB() { return true; } static int sI() { return 1; } }
@@ -0,0 +1,11 @@
class S {
class object {
fun sB(): Boolean {
return true
}
fun sI(): Int {
return 1
}
}
}