Arithmetic Formatter Test Issue


When I run, the test for too many digits fails . When I run the function myself with the values, it returns the error as it should. Any idea why this is?

I think you are missing a period (.)

Sorry, do you mean in the lines for checking number of digits? I can’t really see where I should put one?

- four digits.
?            -
+ four digits
expected_output = 'Error: Numbers cannot be more than four digits.'
fail_message = 'Expected calling "arithmetic_arranger()" with a problem that has a number over 4 digits long to return "Error: Numbers cannot be more than four digits."'

The expected message for this test case has a period at the end. Your code has no period in the string.


oh oops, thank you for that!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.