This project is implemented in Python. You must have Python 3 or newer installed to be able to execute it.
The main module is located in:
InterviewMathParser\interview_math_parser
and can be executed in the command line from the project directory (i.e. InterviewMathParser) with the following command:
Windows
python .\interview_math_parser\interview_math_parser.py [input]
Linux
python interview_math_parser/interview_math_parser.py [input]
e.g.:
Windows
python .\interview_math_parser\interview_math_parser.py 3c4d2aee2a4c41fc4f
Linux
python interview_math_parser/interview_math_parser.py 3c4d2aee2a4c41fc4f
To prove the acceptance criteria you can execute the following and verify the correctness of the output against the provided results:
python .\interview_math_parser\interview_math_parser.py 3a2c4
python .\interview_math_parser\interview_math_parser.py 32a2d2
python .\interview_math_parser\interview_math_parser.py 500a10b66c32
python .\interview_math_parser\interview_math_parser.py 3ae4c66fb32
python .\interview_math_parser\interview_math_parser.py 3c4d2aee2a4c41fc4f
or run the unit tests located in:
InterviewMathParser\tests\test_interview_math_parser.py
that can be executed in the command line from the project directory (i.e. InterviewMathParser) with the following command:
python -m unittest discover
or if pytest is installed
py.test
Project documentation is generated by Sphinx and can be accessed by opening
InterviewMathParser\docs\_build\html\index.html