Using Test Driven Development, expand your Stack class to handle the storage and retreival of constants.
- Prove that any lowercase letter of the alphabet can be a constant. (e.g. 'a' or 'x'). Constant names are case insensitive.
- Prove that your constants can only be defined once per session. Throw an exception otherwise.
- Prove you can defined constants can be used in math expressions.
- Prove that undefined constants can not be used and doing so throws an exception.
- You can create a class Constants if you want, but it is not required. If you choose to create another class, the class must be unit tested.
- Your Stack class should use the Constants class. ;)