Minor point, but for newbies learning I think it’s probably important to not catch them out with things they haven’t really done wrong.
The requirements for this lesson don’t indicate that you must accept uppercase letters as well, but the test require you to have the
i flag on the regex.
I don’t see it as hidden requirement, it’s one of the tests:
myRegex should use the case insensitive flag.
Well, I just thought I would raise it. It’s not in the text explaining it, and its not in the “task” at the end of each lesson.
Personally, I view looking at the tests before I have completed the task as kind of cheating, as it lays it out with massive hints about what you should do.
I want to challenge myself to complete the task asked of me.
My expectation is that I can complete the task with all of the information in the “task” paragraph, using the knowledge gained from the page above.
If I’m mistaken in those assumptions then no worries, it’s just that this was the first time so far that I have found that to be the case.
I can see that perspective, though personally I’m so used to looking at test cases to outline the intended behavior of a function that it is automatic to me.
you can report it as a bug, and it can be discussed:
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.