Minor code improvements and TODO fixes.

This commit is contained in:
pTalanov
2012-05-05 22:03:42 +04:00
parent 9a026aef3f
commit 7b30cc3269
4 changed files with 9 additions and 31 deletions
@@ -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();