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.
Your code doesn't use the unit's worth at all.
Please say which language you're using when asking for help, and use markdown tags to format your code or it is very discomfortable to read, see: how-to-format-code-in-markdown.
This kata has been solved more than 16000 times so it's more likely your code has a problem rather than tests. Maybe this can help you debugging: Troubleshooting Your Solution.
Read the description more carefully. Each unit has a different strength, you need to take this into account.