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.
Not an issue
You probably just need to replace
puts h
withh
. The return value of puts is nil.The first test i see is
Test.assertEquals(capital(state_capitals)[0], "The capital of Maine is Augusta");
this does not seem correct, shouldn't it be
Test.assertEquals(capital(state_capitals[0]), "The capital of Maine is Augusta");
As I understand it you are passing in a single object from the array, the first (incorrect) test will output only the first letter of the returned value,
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution