Skip to content

Commit

Permalink
Simplify shouldReturnEmptyIfZeroParts (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit authored Aug 21, 2024
1 parent 9ea73ce commit 1036285
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void shouldReturnNestedListIfOneBatch() {

@Test
void shouldReturnEmptyIfZeroParts() {
assertThatThrownBy(() -> partitioned(Arrays.asList(1, 2, 3), 0).collect(Collectors.toList()));
assertThatThrownBy(() -> partitioned(Arrays.asList(1, 2, 3), 0).toList());
}

@Test
Expand Down

0 comments on commit 1036285

Please sign in to comment.