Now that we have performed all the refactoring work, we can look
back at our previous code by using the git diff
command.
We can see a clear difference in the quality of code. We have
reduced code repetition as much as possible, optimized the
code logic for faster execution and also added in proper
annotations in the code such that even a non-technical
user can read the code and understand what is happening in
the tests.
Now that we have all the changes ready, let's execute the tests
one last time to make sure all the tests are working as expected.
Great! All tests are passing and we can see an improvement in the execution
time as well.
Let's commit this code now.