In:
|
def read_coordinates(file_name: Union[str, Path]) -> List[Tuple[str, str]]: |
we are reading a file and turning it into a list of coordinates. However that function returns a list of tuples of strings. As we are doing calculations on the results, we would like it to return float values instead of strings.
- Run the test
- Modify the tests to be red, and confirm that you get the desired result by running the tests
- Refactor the code until you are back to green.
In:
tdd_workshop/src/tdd_workshop/io.py
Line 9 in fcda461