Skip to content

Commit 04c0ebc

Browse files
committed
Fix
1 parent 3a56554 commit 04c0ebc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ public void testAbbreviation(String a, String b, boolean expected) {
1818
private static Stream<Arguments> provideTestCases() {
1919
return Stream.of(
2020
// Example test case from problem description
21-
Arguments.of("daBcd", "ABC", true),
21+
Arguments.of("daBcd", "ABC", Boolean.TRUE),
2222

2323
// Test case where transformation is impossible
24-
Arguments.of("dBcd", "ABC", false),
24+
Arguments.of("dBcd", "ABC", Boolean.FALSE),
2525

2626
// Test case with exact match (all uppercase)
27-
Arguments.of("ABC", "ABC", true),
27+
Arguments.of("ABC", "ABC", Boolean.TRUE),
2828

2929
// Test case where input string contains all required letters plus extra lowercase letters
30-
Arguments.of("aAbBcC", "ABC", true),
30+
Arguments.of("aAbBcC", "ABC", Boolean.TRUE),
3131

3232
// Test case with only lowercase letters in input
33-
Arguments.of("abcd", "ABCD", true),
33+
Arguments.of("abcd", "ABCD", Boolean.TRUE),
3434

3535
// Test case with an empty second string (b)
36-
Arguments.of("abc", "", true),
36+
Arguments.of("abc", "", Boolean.TRUE),
3737

3838
// Test case with an empty first string (a) but non-empty second string (b)
39-
Arguments.of("", "A", false),
39+
Arguments.of("", "A", Boolean.FALSE),
4040

4141
// Complex case with interleaved letters
42-
Arguments.of("daBcAbCd", "ABCD", false));
42+
Arguments.of("daBcAbCd", "ABCD", Boolean.FALSE));
4343
}
4444
}

0 commit comments

Comments
 (0)