Arithmetic Formatter failing test module

Tell us what’s happening:
I can successfully run the code with many different arguments put by myself but it somehow fails the test_module part.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Scientific Computing with Python Projects - Arithmetic Formatter

Link to the challenge:

Tell us what’s happening:
I can successfully run the code with many different arguments put by myself but it somehow fails the test_module part.

Your code so farboilerplate-arithmetic-formatter - Nix (beta) Repl - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Scientific Computing with Python Projects - Arithmetic Formatter

Link to the challenge:

Look at the first test you are failing.
The expected return value of the function is:

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

and your function returns:

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