-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor code and Enhance tests in StringExercises class
Code in the `StringExercises` and `LazyStreams` class was refactored for easier readability. Several import statements were consolidated using import java.util.*. In addition, Logger and Predicate libraries were imported and utilized to improve test outputs and function compositions. This makes the code more elegant and enhances debugging capabilities. The tests in `StringExercises` now cover more scenarios like null check in 'demoCollectors' method and applying the 'functionThenConsumer'. These changes increase the comprehensiveness and the accuracy of the tests. LazyStreams also underwent a minor structural reordering in 'printNumbers' method to simplify code. In total, these changes improve code ease-of-use, readability, and testing verification.
- Loading branch information
Showing
2 changed files
with
57 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters