I can’t figure out what the issue is. The test is supposed to detect incorrect decimal places but when I test it myself, everything seems to be working correctly. Even the listed example in the test details ‘An input of “5 . . 0” should display 5.0 : expected ‘05.0’ to equal ‘5.0’’, seems to be working fine when I type it in by hand. The only potential issue I could see is that the answer is displayed as 5 instead of 5.0, but it looks the same in the example project given on the test page.
I just can’t figure out what is causing the test to fail.
You need to use Help button to create a topic to the challenge project. That button appears below the challenge editor when you try to submit the wrong code more than three times.
I cannot get my code for the JS calculator to pass test 11 and I don’t know why. My calculator does not allow multiple decimals and typing in the test case by hand works when I do it. Test is still registering as failing. Has anyone encountered an issue like this, or know how to get more detail on exactly how this is being tested?
Thanks for mentioning the dangling 0 issue. once I pulled on that thread, I resolved the other issues as well. Turns out there was an issue where I was checking for ‘0’ when it could be 0 or the string ‘0’. Once I found that, I found a potential issue with my AC button not fully resetting all the state variables it needed to. Then, on the next run through, all tests passed.