Skip to content

Commit e145f54

Browse files
committed
Fix issues from pull request review
1 parent b736881 commit e145f54

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/com/thealgorithms/dynamicprogramming/RodCuttingTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ void testCutRodEmptyPrices() {
9797
void testCutRodNegativeLength() {
9898
int[] prices = {1, 5, 8, 9, 10}; // Prices are irrelevant for negative length
9999
int length = -1;
100-
assertThrows(IllegalArgumentException.class, () -> RodCutting.cutRod(prices, length),
101-
"A negative rod length should throw an IllegalArgumentException.");
100+
assertThrows(IllegalArgumentException.class, () -> RodCutting.cutRod(prices, length), "A negative rod length should throw an IllegalArgumentException.");
102101
}
103102
}
104-

0 commit comments

Comments
 (0)