Revert 'isEmpty' transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
17c906658d
commit
6322198a11
@@ -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
@@ -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()")
|
||||
|
||||
Reference in New Issue
Block a user