test: Add pytest suite for FLAMES game core logic#1244
Conversation
|
@kinara2086 is attempting to deploy a commit to the Anuj's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hello @steam-bell-92 |
|
Hello @steam-bell-92 |
|
🎉 Thank you for your contribution! Your Pull Request has been merged successfully. We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone. If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request. Thanks again for your support! 🙌 |
📝 Description
The FLAMES game had no corresponding test file in the
tests/directory. This PR adds a comprehensive pytest suite covering core game logic including common character removal, FLAMES result calculation, score computation, and the degenerate case where both names share all letters.9 tests added covering:
remove_common_chars()— basic and identical name casescalculate_flames()— count variations (1, 3, 6)calculate_score()— range validation and full match🔗 Linked Issue
Closes #1243
📋 Contribution Checklist