2
2
3
3
import static org .junit .jupiter .api .Assertions .*;
4
4
5
- import com .thealgorithms .backtracking .All_Paths_From_Source_To_Target ;
5
+ import com .thealgorithms .backtracking .AllPathsFromSourceToTarget ;
6
6
import org .junit .jupiter .api .Test ;
7
7
8
- public class All_Paths_From_Source_To_Target_Test {
8
+ public class AllPathsFromSourceToTargetTest {
9
9
10
10
@ Test
11
11
void testForFirstCase () {
@@ -14,7 +14,7 @@ void testForFirstCase() {
14
14
int source = 2 ;
15
15
int destination = 3 ;
16
16
int num_of_paths = 3 ;
17
- assertTrue (All_Paths_From_Source_To_Target .all_Paths_From_Source_To_Target (vertices ,a ,source ,destination ,num_of_paths ));
17
+ assertTrue (AllPathsFromSourceToTarget .all_Paths_From_Source_To_Target (vertices ,a ,source ,destination ,num_of_paths ));
18
18
}
19
19
20
20
@ Test
@@ -24,7 +24,7 @@ void testForSecondCase() {
24
24
int source = 0 ;
25
25
int destination = 4 ;
26
26
int num_of_paths = 6 ;
27
- assertTrue (All_Paths_From_Source_To_Target .all_Paths_From_Source_To_Target (vertices ,a ,source ,destination ,num_of_paths ));
27
+ assertTrue (AllPathsFromSourceToTarget .all_Paths_From_Source_To_Target (vertices ,a ,source ,destination ,num_of_paths ));
28
28
}
29
29
30
30
@ Test
@@ -34,7 +34,7 @@ void testForThirdCase() {
34
34
int source = 1 ;
35
35
int destination = 5 ;
36
36
int num_of_paths = 2 ;
37
- assertTrue (All_Paths_From_Source_To_Target .all_Paths_From_Source_To_Target (vertices ,a ,source ,destination ,num_of_paths ));
37
+ assertTrue (AllPathsFromSourceToTarget .all_Paths_From_Source_To_Target (vertices ,a ,source ,destination ,num_of_paths ));
38
38
}
39
39
40
40
@ Test
@@ -44,6 +44,6 @@ void testForFourthcase() {
44
44
int source = 0 ;
45
45
int destination = 2 ;
46
46
int num_of_paths = 2 ;
47
- assertTrue (All_Paths_From_Source_To_Target .all_Paths_From_Source_To_Target (vertices ,a ,source ,destination ,num_of_paths ));
47
+ assertTrue (AllPathsFromSourceToTarget .all_Paths_From_Source_To_Target (vertices ,a ,source ,destination ,num_of_paths ));
48
48
}
49
49
}
0 commit comments