Skip to content

Conversation

@krishna-medapati
Copy link
Contributor

Description

Added JUnit test cases for the JugglerSequence algorithm to improve test coverage.

Changes Made

  • ✅ Created JugglerSequenceTest.java with 4 test cases
  • ✅ Tests cover edge cases (n=1) and typical inputs (n=2, 3, 9)
  • ✅ All tests verify correct sequence generation

Why This PR

  • JugglerSequence.java had no test coverage
  • Adding tests improves code quality and reliability
  • Tests follow existing project patterns

Checklist

  • Followed repository coding standards
  • Tests are comprehensive and meaningful
  • Following contribution guidelines

Contributing to Hacktoberfest 2025! 🚀

- Added tests for input values 1, 2, 3, and 9
- Tests verify correct sequence output
- Improves code coverage for maths package
@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.27%. Comparing base (0cdbc58) to head (f56f3f2).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6947      +/-   ##
============================================
+ Coverage     78.20%   78.27%   +0.06%     
- Complexity     6564     6567       +3     
============================================
  Files           743      743              
  Lines         21886    21886              
  Branches       4284     4284              
============================================
+ Hits          17116    17131      +15     
+ Misses         4087     4073      -14     
+ Partials        683      682       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DenizAltunkapan DenizAltunkapan enabled auto-merge (squash) October 26, 2025 09:02
@DenizAltunkapan DenizAltunkapan merged commit a4cf6e3 into TheAlgorithms:master Oct 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants