nashorn/test/script/basic/JDK-8023026.js.EXPECTED
author attila
Fri, 20 Feb 2015 15:47:28 +0100
changeset 29133 1cd7d8af99ba
parent 19469 a5d34b586cea
permissions -rw-r--r--
8072426: Can't compare Java objects to strings or numbers Reviewed-by: hannesw, lagergren, sundar

iterating on an object of class [I
forEach 0
forEach 1
forEach 2
forEach 3
reduce 0 1
reduce 1 2
reduce 3 3
left sum 6
reduceRight 3 2
reduceRight 5 1
reduceRight 6 0
right sum 6
squared 0,1,4,9
iterating on an object of class java.util.ArrayList
forEach 1
forEach 3
forEach 5
forEach 7
reduce 1 3
reduce 4 5
reduce 9 7
left sum 16
reduceRight 7 5
reduceRight 12 3
reduceRight 15 1
right sum 16
squared 1,9,25,49
iterating on 2,4,6,8
forEach 2
forEach 4
forEach 6
forEach 8
reduce 2 4
reduce 6 6
reduce 12 8
left sum 20
reduceRight 8 6
reduceRight 14 4
reduceRight 18 2
right sum 20
squared 4,16,36,64