This code should not pass the test :D
See original GitHub issueChallenge Check for Palindromes has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function palindrome(str) {
if(str === 'not a palindrome' || str === 'nope' || str === 'almostomla' || str === '1 eye for of 1 eye.') {
return false;
}
return true;
}
palindrome("eye");
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Best practices for writing unit tests - .NET - Microsoft Learn
Learn best practices for writing unit tests that drive code quality and resilience for .NET Core and .NET Standard projects.
Read more >Testing Python in Visual Studio Code
(The practice of test-driven development is where you actually write the tests first, then write the code to pass increasingly more tests until...
Read more >unittest — Unit testing framework — Python 3.11.1 ...
The testing code of a TestCase instance should be entirely self contained, ... not available") # test code that depends on the external...
Read more >The pass Statement: How to Do Nothing in Python
In Python, the pass keyword is an entire statement in itself. This statement doesn't do anything: it's discarded during the byte-compile phase.
Read more >ArticleS.UncleBob.TheThreeRulesOfTdd - ButUncleBob.com
The Three Laws of TDD. · You are not allowed to write any production code unless it is to make a failing unit...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah that’s my point. It’s totally fixable but it’s probably not worth the effort just to end up with a different form of cheating :p
So, ‘1 eye for of 1 eye’ is bugged?