Our 4th test Bite. Michael made a calculator that will be able to accept a list of decimal digits and returns an integer where each int of the given list represents decimal place values from first element to last.
He wrote the function in such a way that it only accepts positive digits in range(0, 10)
and anything that is not raises a ValueError
if its out of range, or a TypeError
if its not an int
type.
Some examples:
TypeError
ValueError
TypeError
TypeError
In this Bite you are tasked to write the tests for this function. Good luck and keep calm and code in Python!