mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 06:23:08 +08:00
refactor: change packages (#5430)
* refactor: change package * refactor: fix name --------- Co-authored-by: alxkm <alx@alx.com>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package com.thealgorithms.dynamicprogramming;
|
||||
package com.thealgorithms.datastructures.graphs;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
@ -5,10 +5,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvSource;
|
||||
|
||||
public class ShortestCommonSuperSequenceLengthTest {
|
||||
public class ShortestCommonSupersequenceLengthTest {
|
||||
@ParameterizedTest
|
||||
@CsvSource({"AGGTAB, GXTXAYB, 9", "ABC, ABC, 3", "ABC, DEF, 6", "'', ABC, 3", "ABCD, AB, 4", "ABC, BCD, 4", "A, B, 2"})
|
||||
void testShortestSuperSequence(String input1, String input2, int expected) {
|
||||
assertEquals(expected, ShortestCommonSuperSequenceLength.shortestSuperSequence(input1, input2));
|
||||
void testShortestSupersequence(String input1, String input2, int expected) {
|
||||
assertEquals(expected, ShortestCommonSupersequenceLength.shortestSuperSequence(input1, input2));
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.thealgorithms.others;
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
@ -1,4 +1,4 @@
|
||||
package com.thealgorithms.others;
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
Reference in New Issue
Block a user