Skip to content

fix: handle empty inputs in CircleSort#5121

Merged
vil02 merged 9 commits intoTheAlgorithms:masterfrom
vil02:add_test_for_CircleSort
May 5, 2024
Merged

fix: handle empty inputs in CircleSort#5121
vil02 merged 9 commits intoTheAlgorithms:masterfrom
vil02:add_test_for_CircleSort

Conversation

@vil02
Copy link
Copy Markdown
Member

@vil02 vil02 commented Apr 26, 2024

This PR adds tests for CircleSort and fixes the infinite loop occurring for empty input.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 26, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.55%. Comparing base (6bde5d7) to head (9a7a5e5).
⚠️ Report is 1089 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5121      +/-   ##
============================================
+ Coverage     37.36%   37.55%   +0.18%     
- Complexity     2350     2364      +14     
============================================
  Files           517      517              
  Lines         15613    15605       -8     
  Branches       2968     2965       -3     
============================================
+ Hits           5834     5860      +26     
+ Misses         9491     9458      -33     
+ Partials        288      287       -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.

@vil02 vil02 marked this pull request as ready for review April 26, 2024 06:55
@vil02 vil02 mentioned this pull request Apr 26, 2024
6 tasks
@vil02 vil02 enabled auto-merge (squash) April 27, 2024 07:30
Copy link
Copy Markdown
Member

@BamaCharanChhandogi BamaCharanChhandogi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@vil02 vil02 merged commit 5d00889 into TheAlgorithms:master May 5, 2024
@vil02 vil02 deleted the add_test_for_CircleSort branch May 5, 2024 18:37
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