Closed StPfeffer closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.86%. Comparing base (
0aa3f8d
) to head (327bafb
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
What do you think about defining the
26
as some constant. It could be computed as a difference betweena
andz
(plus 1, I think).
That's a good idea. I defined it as:
const ALPHABET_LENGTH: u8 = b'z' - b'a' + 1;
Description
Refactored the Caesar algorithm to handle larger inputs and rotations while preserving the existing code structure. Included additional tests for improved coverage.
Type of change
Checklist:
cargo clippy --all -- -D warnings
just before my last commit and fixed any issue that was found.cargo fmt
just before my last commit.cargo test
just before my last commit and all tests passed.mod.rs
file within its own folder, and in any parent folder(s).DIRECTORY.md
with the correct link.COUNTRIBUTING.md
and my code follows its guidelines.