commit | 95dd7b876d7df2ad87c8cfdc247c340730fc60ed | [log] [tgz] |
---|---|---|
author | Pete Bentley <prb@google.com> | Fri Apr 03 18:23:18 2020 +0100 |
committer | Pete Bentley <prb@google.com> | Fri Apr 03 18:23:18 2020 +0100 |
tree | 519aa5b8522c29a32655c246b5812f0c5ec9693c | |
parent | b13d61d083769627c935933f0027f37df2d60158 [diff] |
Improve test coverage for Arrays.stream(). For each of the primitive overloads of Arrays.stream() tests * Expected results when streaming and mapping * Streaming and collecting with toArray() returns an identical array * Streaming and collecting to a list results ina list with the same values * Providing start and end indices works as expected Bug: 151111571 Test: atest CtsLibcoreTestCases:libcore.java.util.ArraysTest Change-Id: Ifd24588b0b01f823146bef3ee60b2d487aeae070