This exercise requires you to write C++ code that will introduce the concept of Test Driven Development and the use of regular expressions
In this exercise you will create the rules for a simple version of a password game inspired by The Password Game by Neal Agarwal
You will be responsible for writing to rules.cpp, rules.h, and testRules.cpp
An Activity Journal is required for this activity, be sure to work on it as you go.
Be sure to reference the regex slides and the online regex tester in working on your implementations. Some of these are more challenging than they appear. Be sure to ask for help as you need it.
cpp_passwords.passwords and the application test with make../test .unitTests function to confirm that future code works as expected. Ensure you test both passing and failing conditionsrules.h and add a stub to rules.cpp.evaluateAllRules function../passwords.The rule functions themselves should return and empty string for passing the rule and the specified error string for failing
Your test functions should compare the returned string to what is expected given your input
The provided stub for ruleLength will likely cause any tests you write to crash instead of fail during the first stage of TDD, so determine a string that will cause all your tests to fail instead of crash