The conflict that I have in the first project “Arithmetic Formatter”, is with this rule : There should be a single space between the operator and the longest of the two operands, the operator will be on the same line as the second operand, both operands will be in the same order as provided (the first will be the top one and the second will be the bottom.
but some unit testing have more than 1 space, is a little difficult for me to test in this condition, here I can show an example :
expected = " 3 3801 45 123\n+ 855 - 2 + 43 + 49\n----- ------ ---- -----"
- 855 - 2 + 43 + 49 :
between + and 855 : 1 blank space is fine.
between - and 2: 4 blank spaces but the rule is only 1 space.
between + and 43: 1 blank space is fine.
between + and 49: 2 blank spaces but the rule is only 1 space.
I don’t know if I’m making a mistake.
Thanks for your time and collaboration.