josealmeida / nice-interview

Submission for 907-NICE230 Senior Developer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interview Math Parser - Jose Almeida Submission

Info

This project is implemented in Python. You must have Python 3 or newer installed to be able to execute it.

Execution

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

Proof of acceptance criteria

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

Project documentation is generated by Sphinx and can be accessed by opening

InterviewMathParser\docs\_build\html\index.html

About

Submission for 907-NICE230 Senior Developer

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%