j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
//statement
|
||||
try { callMethod(params);} catch (Exception e) { println(1);} catch (IOException e) { println(0);} finally { println(3);}
|
||||
@@ -0,0 +1,9 @@
|
||||
try {
|
||||
callMethod(params)
|
||||
} catch (e: Exception) {
|
||||
println(1)
|
||||
} catch (e: IOException) {
|
||||
println(0)
|
||||
} finally {
|
||||
println(3)
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
//file
|
||||
import java.io.IOException;
|
||||
|
||||
class A {
|
||||
void foo() {
|
||||
try {
|
||||
bar()
|
||||
}
|
||||
catch(RuntimeException | IOException e) {
|
||||
e.printStackTrace(); // print stack trace
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// ERROR: Unresolved reference: bar
|
||||
import java.io.IOException
|
||||
|
||||
class A {
|
||||
fun foo() {
|
||||
try {
|
||||
bar()
|
||||
} catch (e: RuntimeException) {
|
||||
e.printStackTrace() // print stack trace
|
||||
} catch (e: IOException) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//statement
|
||||
try {} catch (Exception e) { println(1);} catch (IOException e) { println(0);} finally {}
|
||||
@@ -0,0 +1,7 @@
|
||||
try {
|
||||
} catch (e: Exception) {
|
||||
println(1)
|
||||
} catch (e: IOException) {
|
||||
println(0)
|
||||
} finally {
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//statement
|
||||
try {} catch (Exception e) { println(1);} catch (IOException e) { println(0);} finally { println(3);}
|
||||
@@ -0,0 +1,8 @@
|
||||
try {
|
||||
} catch (e: Exception) {
|
||||
println(1)
|
||||
} catch (e: IOException) {
|
||||
println(0)
|
||||
} finally {
|
||||
println(3)
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//statement
|
||||
try {} catch (Exception e) { println(1);} catch (IOException e) { println(0);}
|
||||
@@ -0,0 +1,6 @@
|
||||
try {
|
||||
} catch (e: Exception) {
|
||||
println(1)
|
||||
} catch (e: IOException) {
|
||||
println(0)
|
||||
}
|
||||
Reference in New Issue
Block a user