Skip to content

Commit e2a0a9a

Browse files
committed
🔧 Apply clang-format to ReservoirSamplingTest
1 parent 7fd1a88 commit e2a0a9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/test/java/com/thealgorithms/randomized/ReservoirSamplingTest.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ public void testSampleSizeLessThanStreamLength() {
3636
public void testSampleSizeGreaterThanStreamLengthThrowsException() {
3737
int[] stream = {1, 2, 3};
3838

39-
Exception exception = assertThrows(IllegalArgumentException.class, () -> {
40-
ReservoirSampling.sample(stream, 5);
41-
});
39+
Exception exception = assertThrows(IllegalArgumentException.class, () -> { ReservoirSampling.sample(stream, 5); });
4240

4341
assertEquals("Sample size cannot exceed stream size.", exception.getMessage());
4442
}

0 commit comments

Comments
 (0)