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

fix(curriculum): prevent hardcoding palidrome checker answers #54816

Conversation

a2937
Copy link
Member

@a2937 a2937 commented May 15, 2024

Checklist:

Ref #54063

This generates one random phrase consisting of both numbers and lowercase letters. It'd be extremely difficult to hard-code a solution for this test. It'd be a lot less work just solving the problem rather than predicting whatever is generated.

@github-actions github-actions bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label May 15, 2024
Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
Copy link
Contributor

@ilenia-magoni ilenia-magoni left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@gikf
Copy link
Member

gikf commented May 15, 2024

I think one more test is required, to cover generated non-palindrome. Otherwise there's option to hardcode the specific cases and anything else consider as a palindrome.

a2937 and others added 2 commits May 15, 2024 16:18
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
@a2937 a2937 requested a review from ilenia-magoni May 15, 2024 20:43
Copy link
Contributor

@ilenia-magoni ilenia-magoni left a comment

Choose a reason for hiding this comment

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

I was going to say that the not palindrome could be a palindrome, but you are removing used letters, good 👍

@zairahira zairahira added the new javascript course These are for issues dealing with the new JS curriculum label May 16, 2024
@a2937 a2937 requested a review from gikf May 16, 2024 15:04
@moT01 moT01 added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label May 20, 2024
Copy link
Member

@Ksound22 Ksound22 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@ilenia-magoni ilenia-magoni merged commit 52dfbe9 into freeCodeCamp:main May 22, 2024
22 checks passed
@a2937 a2937 deleted the fix(curriculum)/prevent-hardcoding-palidrome-checker branch May 22, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new javascript course These are for issues dealing with the new JS curriculum scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants