Skip to content

Commit e687af6

Browse files
author
Alex Klymenko
committed
tests: fix formatting
1 parent ddb2b87 commit e687af6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/com/thealgorithms/stacks/LargestRectangleTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ void testLargestRectangleHistogramWithTypicalCases() {
1515
assertEquals(expected, result);
1616

1717
// Another typical case with increasing heights
18-
heights = new int[]{2, 4};
18+
heights = new int[] {2, 4};
1919
expected = "4";
2020
result = LargestRectangle.largestRectanglehistogram(heights);
2121
assertEquals(expected, result);
2222

2323
// Case with multiple bars of the same height
24-
heights = new int[]{4, 4, 4, 4};
24+
heights = new int[] {4, 4, 4, 4};
2525
expected = "16";
2626
result = LargestRectangle.largestRectanglehistogram(heights);
2727
assertEquals(expected, result);
@@ -36,13 +36,13 @@ void testLargestRectangleHistogramWithEdgeCases() {
3636
assertEquals(expected, result);
3737

3838
// Edge case with a single bar
39-
heights = new int[]{5};
39+
heights = new int[] {5};
4040
expected = "5";
4141
result = LargestRectangle.largestRectanglehistogram(heights);
4242
assertEquals(expected, result);
4343

4444
// Edge case with all bars of height 0
45-
heights = new int[]{0, 0, 0};
45+
heights = new int[] {0, 0, 0};
4646
expected = "0";
4747
result = LargestRectangle.largestRectanglehistogram(heights);
4848
assertEquals(expected, result);
@@ -69,7 +69,7 @@ void testLargestRectangleHistogramWithComplexCases() {
6969
assertEquals(expected, result);
7070

7171
// Case with a peak in the middle
72-
heights = new int[]{2, 1, 5, 6, 2, 3, 1};
72+
heights = new int[] {2, 1, 5, 6, 2, 3, 1};
7373
expected = "10";
7474
result = LargestRectangle.largestRectanglehistogram(heights);
7575
assertEquals(expected, result);

0 commit comments

Comments
 (0)