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

feat(cipher/caesar): add fuzzy test to caesar cipher #559

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

VictorAssunc
Copy link
Contributor

@VictorAssunc VictorAssunc commented Oct 8, 2022

Added Fuzzy test to Caesar Cipher

I had to make a small change in the algorithm approach and treat the input text as a byte array, as the old way some characters were converted wrong. An example obtained when running fuzzy was the character ǃ (note that this is different from !) was converted to and not returned to normal in Decrypt.

image
In this image you can better see the difference between the two characters (left: the one responsible for the problem; right: the normal character)

I don't know if I chose the best approach. I'm willing to change that and also give more details about the problem.

Ref #480

Copy link
Member

@tjgurwara99 tjgurwara99 left a comment

Choose a reason for hiding this comment

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

Indeed, this is a correct change.

@VictorAssunc
Copy link
Contributor Author

Indeed, this is a correct change.

ok, thanks. it would be nice if you can label this PR with hacktoberfest-accepted :)

@raklaptudirm raklaptudirm added the hacktoberfest-accepted Marks a PR as valid contribution to be counted for hacktoberfest. label Oct 12, 2022
@tjgurwara99 tjgurwara99 merged commit 873b9ec into TheAlgorithms:master Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Marks a PR as valid contribution to be counted for hacktoberfest.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants