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

Length conversion #830

Merged
merged 7 commits into from
Oct 27, 2024
Merged

Length conversion #830

merged 7 commits into from
Oct 27, 2024

Conversation

ali77gh
Copy link
Contributor

@ali77gh ali77gh commented Oct 20, 2024

Length Conversions

Description

Algorithm of converting different length units together.

Something like python repo

Available Units:

  • Millimeter
  • Centimeter
  • Meter
  • Kilometer
  • Inch
  • Foot
  • Yard
  • Mile

Type of change

  • New feature (non-breaking change which adds functionality)

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.

@ali77gh ali77gh requested review from imp2002 and vil02 as code owners October 20, 2024 18:14
@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.41%. Comparing base (1af4efa) to head (967f112).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #830      +/-   ##
==========================================
+ Coverage   95.35%   95.41%   +0.05%     
==========================================
  Files         313      314       +1     
  Lines       22708    22754      +46     
==========================================
+ Hits        21654    21710      +56     
+ Misses       1054     1044      -10     

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

src/conversions/length_conversion.rs Outdated Show resolved Hide resolved
src/conversions/length_conversion.rs Outdated Show resolved Hide resolved
src/conversions/length_conversion.rs Outdated Show resolved Hide resolved
src/conversions/length_conversion.rs Outdated Show resolved Hide resolved
src/conversions/length_conversion.rs Outdated Show resolved Hide resolved
src/conversions/length_conversion.rs Show resolved Hide resolved
src/conversions/length_conversion.rs Outdated Show resolved Hide resolved
src/conversions/length_conversion.rs Outdated Show resolved Hide resolved
@vil02 vil02 merged commit 1b07a48 into TheAlgorithms:master Oct 27, 2024
4 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