Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hello. The following information is received in the test: "There should be 1 ship sunk: expected +0 to equal 1"
And even if I assign "result.sync = 1;" before return (as a test), the test result will be "There should be 1 ship sunk: expected +0 to equal 1".
The rest, except for the value "1", the test perceives as it should (if I assign "result.sync = 100;" before return (as a test), the test result will be "There should be 1 ship sunk: expected 100 to equal 1")
What could be the reason? (why does the test perceive "1" as "+0"?)
(JS solution)