Closed matthewlanders closed 7 years ago
Ah I just realized I probably should have added another test condition instead of modifying the first. I can do that this evening (I am in California). @maximumdata
@mmlanders23 I pulled your fork and tested it out, and it works great! The only thing I was going to mention was the test case, but you've already pointed it out.
Feel free to devise your own, but I think a test for this case would be to have a new array containing strings that have at least one letter capitalized in every word ( i.e. ['Test seNtence', 'anothEr teSt sentenCe']
...etc ), send that into the generator, and then the test will pass if the output doesn't equal output.toLowerCase(). Either way, thanks for your contribution (and especially for commenting your addition)!
Ready to merge once a test is created.
Hey @maximumdata. Test added! Let me know what you think.
@mmlanders23 Thanks a lot for your contribution! My holiday break was a bit longer than most, but I'll be reviewing this PR, and (most likely) merging it later today!
Merged! Thanks again for contributing!
My pleasure!
Hey @maximumdata, let me know what you think!