hasNext changes to fun in js tests

This commit is contained in:
Svetlana Isakova
2012-08-14 19:14:07 +04:00
parent a5aaa3dadc
commit f3146a9697
@@ -4,8 +4,8 @@ val a1 = Array<Int>(3, {(i : Int) -> i})
fun box() : Boolean{
val i = a1.iterator()
return ((i.hasNext == true) && (i.next() == 0) &&
(i.hasNext == true) && (i.next() == 1) &&
(i.hasNext == true) && (i.next() == 2) &&
(i.hasNext == false));
return ((i.hasNext() == true) && (i.next() == 0) &&
(i.hasNext() == true) && (i.next() == 1) &&
(i.hasNext() == true) && (i.next() == 2) &&
(i.hasNext() == false));
}