Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Boyer-Moore Search Algorithm #794

Merged

Conversation

sozelfist
Copy link
Contributor

Changes

  • Decompse the functions with helper functions
  • Write docstring for explaination
  • Rewrite tests using macro and add some edge tests

Checklist:

  • I ran bellow commands using the latest version of rust nightly.
  • I ran cargo clippy --all -- -D warnings just before my last commit and fixed any issue that was found.
  • I ran cargo fmt just before my last commit.
  • I ran cargo test just before my last commit and all tests passed.
  • I added my algorithm to the corresponding mod.rs file within its own folder, and in any parent folder(s).
  • I added my algorithm to DIRECTORY.md with the correct link.
  • I checked COUNTRIBUTING.md and my code follows its guidelines.

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.33%. Comparing base (418bf15) to head (8c20f0f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #794   +/-   ##
=======================================
  Coverage   95.32%   95.33%           
=======================================
  Files         310      310           
  Lines       22467    22490   +23     
=======================================
+ Hits        21416    21440   +24     
+ Misses       1051     1050    -1     

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

@sozelfist
Copy link
Contributor Author

Can you have a look, @vil02?

@sozelfist
Copy link
Contributor Author

Can you review this PR, it stands here for a week.

- Decompse the functions with helper functions
- Write docstring for explaination
- Rewrite tests using macro and add some edge tests
@vil02 vil02 force-pushed the ref/string/boyer_moore_search branch from 019b1f7 to 8c20f0f Compare October 4, 2024 10:08
@vil02 vil02 merged commit aad5192 into TheAlgorithms:master Oct 4, 2024
4 checks passed
@sozelfist sozelfist deleted the ref/string/boyer_moore_search branch October 4, 2024 12:23
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