This is a demo project for the Mjukvaruutveckling course at JTH.
This simple program reads a number from the keyboard and prints its reverse.
You can run the program like so:
$ python src/reverser.py
Type a number: 123
Its reverse is: 321
Type an integer to get its reverse. Leading zeroes are discarded.
To run the tests, use:
PYTHONPATH=src python tests/test_reverseno.py
On Windows, please use:
set PYTHONPATH=src
python tests/test_reverseno.py
To run the doctests, use:
python src/reverselib.py