Arithmetic Formatter works in command console - but not in replit

I’ve written my code in Atom and it works when used in the windows console
Error messages and different number of problems provided and all

However I don’t understand the error messages in replit

Replit code link

Hope the link works, I’ve never worked with replit before

Taking as an example, the first test:

arguments = [['3801 - 2', '123 + 49']]
expected_output = '  3801      123\n-    2    +  49\n------    -----'
fail_message = 'Expected different output when calling "arithmetic_arranger()" with ["3801 - 2", "123 + 49"]'

>   ???
E   AssertionError: Expected different output when calling "arithmetic_arranger()" with ["3801 - 2", "123 + 49"]
E   assert '------    -----    ' == '  3801      123\n-    2    +  49\n------    -----'
E     -   3801      123
E     - -    2    +  49
E     - ------    -----
E     + ------    -----    
E     ?                ++++

Details of what was wrong starts after the AssertionError line.

assert '------    -----    ' == '  3801      123\n-    2    +  49\n------    -----'

On the left (after assert and before ==) is what was returned by function, on the right is what was expected.

The next lines go into more details

-   3801      123
- -    2    +  49
- ------    -----
+ ------    -----    
?                ++++

Line starting with - is from expected result, line starting with + is what function returned, the ? indicates specific place on the previous line where something differs.

Thanks a lot :smiley:
I really didn’t know where to look in the test/error output!

It works now !!