Freecodecamp: [beta] Test error: Intermediate Algorithm Challenge - Missing Letters

Created on 18 Feb 2017  ·  3Comments  ·  Source: freeCodeCamp/freeCodeCamp

The test fearNotLetter("abcdefghjklmnopqrstuvwxyz") is supposed to return undefined because there's supposed to be no letters missing in the string. However, the letter "i" is very clearly missing. My solution is correct and passes all tests and returns undefined when the string above has the missing i.

I hope this helps you guys catch this error

help wanted

Most helpful comment

Hi, @Greenheart @raisedadead Can I fix this issue ?

All 3 comments

@fixtheelvis Thanks for reporting this - What a catch! :open_mouth:

Don't mind the bot, we haven't taught it proper manners yet! :smile:

Here's the assertion for the test case you are refferring to:

assert.isUndefined(fearNotLetter('abcdefghijklmnopqrstuvwxyz'), 'message: <code>fearNotLetter(\"abcdefghjklmnopqrstuvwxyz\")</code> should return undefined.');

As you can see, each test case concists of an assertion with something that evaluates to true/false and a message. In this case, the message is supposed to show the full sequence - but as you pointer out, it's missing the letter i. Since it's part of the message-string, it's visible to campers (at least those who catch it!), but it won't affect the assertion. That's why the test still passes.

Since you caught this error, would you like to make a contribution and fix it? Me and other contributors would be happy to guide you through the process! :smile:

Hi, @Greenheart @raisedadead Can I fix this issue ?

@Quinn-H Thanks, that would be awesome!

See CONTRIBUTING.md for help getting started and come chat with us in the contributors chat room if you have any questions.

Happy coding! :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vaibsharma picture vaibsharma  ·  3Comments

MichaelLeeHobbs picture MichaelLeeHobbs  ·  3Comments

danielonodje picture danielonodje  ·  3Comments

raisedadead picture raisedadead  ·  3Comments

QuincyLarson picture QuincyLarson  ·  3Comments