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.
Okay great, thank you!
Check the function definition clicking reset:
Leave it like that, do the casting inside it.
This comment is hidden because it contains spoiler information about the solution
Hello!
I was able to work out the solution in Playgrounds, but seem to keep running into an error when I attempt the test here. The error is as follows:
main.swift:25:56: error: cannot convert value of type 'Int' to expected argument type 'Double'
XCTAssertEqual(solution(weight, height), bmi(weight, height))
^~~~~~
Double( )
Any idea why I am getting this error message?
Thank you!