File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -58,28 +58,26 @@ A highly efficient divide-and-conquer algorithm that selects a "pivot" element,
58
58
59
59
## Running the Project
60
60
61
- 1 . ** Compile the Code** : Maven handles compilation automatically with the following command:
61
+ 1 . ** Compile the Code** : Make sure you have Java and Maven installed, and then compile the code using Maven with the following command:
62
62
63
63
``` bash
64
64
mvn compile
65
65
```
66
66
67
- This compiles all Java classes located in the ` src/main/java ` directory.
68
-
69
67
2 . ** Run the Sorting Algorithms** : To run the main program, use Maven with the following command:
70
68
71
69
``` bash
72
70
mvn exec:java -Dexec.mainClass=" com.brandoniscoding.Main"
73
71
```
74
72
75
- 3 . ** Experiment with Generic Types** : To experiment with different data types in the sorting algorithms:
73
+ 3 . ** Run the Tests** : To execute the unit tests for the sorting algorithms, run the following Maven command:
74
+
75
+ ``` bash
76
+ mvn test
77
+ ```
78
+
79
+ This will execute all the tests defined in the project and show the results in the terminal.
76
80
77
- - Modify test cases in the ` Main ` class or in test classes under ` src/test/java ` to test data types like ` Integer ` , ` String ` , or custom objects.
78
- - Use Maven to recompile and run your tests with:
79
- ``` bash
80
- mvn test
81
- ```
82
- - This command will execute all tests defined in ` src/test/java` and display the results for each sorting case you’ve tested.
83
81
84
82
## Contributing
85
83
You can’t perform that action at this time.
0 commit comments