Revert 'isEmpty' transformation

This commit is contained in:
Denis Zharkov
2015-10-13 20:49:31 +03:00
committed by Mikhail Glukhikh
parent 17c906658d
commit 6322198a11
71 changed files with 127 additions and 156 deletions
+1 -1
View File
@@ -5,5 +5,5 @@ import java.util.ArrayList;
fun box(): Boolean {
val a = ArrayList<Int>();
a.add(3)
return !(a.isEmpty) && (ArrayList<Int>().isEmpty);
return !(a.isEmpty()) && (ArrayList<Int>().isEmpty());
}
+2 -2
View File
@@ -28,7 +28,7 @@ fun box(): Boolean {
return false
}
if (a.isEmpty || !ArrayList<Int>().isEmpty) {
if (a.isEmpty() || !ArrayList<Int>().isEmpty()) {
return false
}
@@ -39,7 +39,7 @@ fun box(): Boolean {
assertEquals(a, b, "a == b")
a.clear()
assertEquals(true, a.isEmpty, "a.isEmpty")
assertEquals(true, a.isEmpty(), "a.isEmpty()")
assertEquals(arrayOf(1, 500, 2, 3), list.toTypedArray(), "list.toTypedArray()")