Test suites fail but i dont know why.. FCC: calculator

I’m confused why only 12 tests are passing. I’m not excluding the negative sign so I’m currently not worried about that one but the others if i manually input the equations they work. Am I missing something?

In pink floyd impression: “is there anybody out there”

If you take a closer look at the errors for further failing tests should give some idea what is wrong. Notice the expected part of error output.

The expression "10.5 - 5.5" should produce an output of "5" : expected '5\n\n0' to equal '5'
AssertionError: The expression "10.5 - 5.5" should produce an output of "5" : expected '5\n\n0' to equal '5'

I see that but i don’t understand why it says that. When i input it manually i get “5”. Im not understanding the difference in the return from manually inputting the equation, to the test suite returning “5\n\n0”. Is there a difference from the way the test suites enter the equation vs manual input ?

Or is it because of the way I display the results with a previous and current both in the #display div…so its reading them both as an answer

I’d say it’s the latter. Tests seem to be expecting just the result in the checked element.

Ya that was it …im going to edit and re write some things today to better fit the test suites …kinda sad though :cry: i liked how it functioned with the history as well as current…might just fork it and make version that passes…thank you for your help