Skip to content

Commit 55d21e1

Browse files
committed
Fix
1 parent 3907284 commit 55d21e1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ void testChangeNoCoins() {
1919
int amount = 12;
2020
int[] coins = {};
2121

22-
// No coins are available, so no combinations are possible
2322
assertEquals(0, CoinChange.change(coins, amount));
2423
}
2524

@@ -28,7 +27,6 @@ void testChangeNoAmount() {
2827
int amount = 0;
2928
int[] coins = {2, 4, 5};
3029

31-
// For amount 0, there is exactly 1 way to make change (using no coins)
3230
assertEquals(1, CoinChange.change(coins, amount));
3331
}
3432

@@ -37,7 +35,6 @@ void testChangeImpossibleAmount() {
3735
int amount = 3;
3836
int[] coins = {2, 4, 5};
3937

40-
// It's impossible to make change for amount 3 with the given coins
4138
assertEquals(0, CoinChange.change(coins, amount));
4239
}
4340

@@ -46,7 +43,6 @@ void testMinimumCoinsBasic() {
4643
int amount = 12;
4744
int[] coins = {2, 4, 5};
4845

49-
// The minimum number of coins to make 12 is 3 (4 + 4 + 4)
5046
assertEquals(3, CoinChange.minimumCoins(coins, amount));
5147
}
5248

@@ -55,7 +51,6 @@ void testMinimumCoinsNoCoins() {
5551
int amount = 12;
5652
int[] coins = {};
5753

58-
// No coins are available, so it's impossible to make the amount
5954
assertEquals(Integer.MAX_VALUE, CoinChange.minimumCoins(coins, amount));
6055
}
6156

@@ -64,7 +59,6 @@ void testMinimumCoinsNoAmount() {
6459
int amount = 0;
6560
int[] coins = {2, 4, 5};
6661

67-
// For amount 0, 0 coins are required
6862
assertEquals(0, CoinChange.minimumCoins(coins, amount));
6963
}
7064

@@ -73,7 +67,6 @@ void testMinimumCoinsImpossibleAmount() {
7367
int amount = 3;
7468
int[] coins = {2, 4, 5};
7569

76-
// It's impossible to make amount 3 with the given coins
7770
assertEquals(Integer.MAX_VALUE, CoinChange.minimumCoins(coins, amount));
7871
}
7972

@@ -82,7 +75,6 @@ void testMinimumCoinsExactAmount() {
8275
int amount = 10;
8376
int[] coins = {1, 5, 10};
8477

85-
// The minimum number of coins to make 10 is 1 (using the 10-coin)
8678
assertEquals(1, CoinChange.minimumCoins(coins, amount));
8779
}
8880
}

0 commit comments

Comments
 (0)