Minor code improvements and TODO fixes.
This commit is contained in:
@@ -49,7 +49,6 @@ public final class TestConfig extends Config {
|
||||
List<JetFile> libFiles = new ArrayList<JetFile>();
|
||||
for (String libFileName : LIB_FILE_NAMES) {
|
||||
JetFile file = null;
|
||||
//TODO: close stream?
|
||||
try {
|
||||
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed")
|
||||
InputStream stream = new FileInputStream(LIBRARIES_LOCATION + libFileName);
|
||||
@@ -70,6 +69,7 @@ public final class TestConfig extends Config {
|
||||
return libFiles;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public List<JetFile> generateLibFiles() {
|
||||
if (jsLibFiles == null) {
|
||||
|
||||
@@ -94,13 +94,13 @@ public class FunctionTest extends AbstractExpressionTest {
|
||||
}
|
||||
|
||||
//TODO: disabled. Probable cause : vars in closures.
|
||||
//
|
||||
// public void testKT921() throws Exception {
|
||||
//
|
||||
// checkOutput("KT-921.kt", "1,\n" +
|
||||
// "1, 2,\n" +
|
||||
// "2, ");
|
||||
// }
|
||||
|
||||
//public void testKT921() throws Exception {
|
||||
//
|
||||
// checkOutput("KT-921.kt", "1,\n" +
|
||||
// "1, 2,\n" +
|
||||
// "2, ");
|
||||
//}
|
||||
|
||||
public void testFunctionInsideFunction() throws Exception {
|
||||
fooBoxTest();
|
||||
|
||||
Reference in New Issue
Block a user