8016448: java/util/BitSet/BitSetStreamTest.java no longer compiles, missed by 8015895
authorhenryjen
Wed, 12 Jun 2013 14:07:14 -0700
changeset 18167 fb6a6363109c
parent 18166 a24e00a7c5ae
child 18168 f47169155ea0
8016448: java/util/BitSet/BitSetStreamTest.java no longer compiles, missed by 8015895 Reviewed-by: mduigou
jdk/test/java/util/BitSet/BitSetStreamTest.java
--- a/jdk/test/java/util/BitSet/BitSetStreamTest.java	Wed Jun 12 11:11:59 2013 -0700
+++ b/jdk/test/java/util/BitSet/BitSetStreamTest.java	Wed Jun 12 14:07:14 2013 -0700
@@ -65,10 +65,10 @@
         { "index 0", IntStream.of(0) },
         { "index 255", IntStream.of(255) },
         { "every bit", IntStream.range(0, 255) },
-        { "step 2", IntStream.range(0, 255, 2) },
-        { "step 3", IntStream.range(0, 255, 3) },
-        { "step 5", IntStream.range(0, 255, 5) },
-        { "step 7", IntStream.range(0, 255, 7) },
+        { "step 2", IntStream.range(0, 255).map(f -> f * 2) },
+        { "step 3", IntStream.range(0, 255).map(f -> f * 3) },
+        { "step 5", IntStream.range(0, 255).map(f -> f * 5) },
+        { "step 7", IntStream.range(0, 255).map(f -> f * 7) },
         { "1, 10, 100, 1000", IntStream.of(1, 10, 100, 1000) },
         { "25 fibs", IntStream.generate(new Fibs()).limit(25) }
     };