LarsGast / DeckOfPlayingCards

Simple code to play with a standard deck of 52 cards
MIT License
0 stars 0 forks source link

Write more and better tests #11

Open LarsGast opened 1 year ago

LarsGast commented 1 year ago

Is your feature request related to a problem? Please describe. I'd like to request the addition of test cases for the Deck and Card classes to ensure their functionality and reliability in the project.

Describe the solution you'd like I'd like to have a comprehensive set of test cases written for the Deck and Card classes. These test cases should cover various aspects of the classes, including constructor behavior, method functionality, edge cases, and immutability checks. Writing tests will help ensure the correctness and robustness of these classes, which is essential for maintaining code quality.

Describe alternatives you've considered While writing test cases for these classes is the preferred solution, an alternative could be to rely on manual testing. However, this approach is less reliable and may lead to undetected issues in the future. Automated tests provide a systematic and repeatable way to verify the behavior of these classes.

Additional context Adding unit tests for the Deck and Card classes will not only ensure that the classes work as intended but also make future maintenance and enhancements more manageable. The tests should cover a wide range of scenarios, including both typical and edge cases, to minimize the risk of regressions and ensure long-term stability.