Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

_____________________________________ Python Version _____________________________________

It is necessary to use any version 3.x

________________________________________ Solution ________________________________________

The solution adopts three functions.

  • changeOrientation: permits to change the direction of the move
  • move: permits to manage the command M, then move of 1 unit in the direction
  • calcFinalPos: iterates on the sequence of the command to reach the final position.
    There are some checks to control the data and the results.

________________________________________ Testing ________________________________________

There are unit testing for all the functions and paths in the code. In order to run the
unit testing, it is possible to use the command

  • python -m unittest discover -p "*_test.py"

About

Simple task to exercise unit testing framework in Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages