question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This code should not pass the test :D

See original GitHub issue

Challenge 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:closed
  • Created 8 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
benmcmahon100commented, Mar 24, 2016

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

0reactions
philipjccommented, May 13, 2016

So, ‘1 eye for of 1 eye’ is bugged?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found