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.
Thanks, you were right. Solution was to mark all methods as public.
Are you sure your
male
method is visible? Maybe mark itpublic
explicitly?The
{}
in the error message should actually be1
. This is corrected: you should reset/reload the tests to see the difference.hey, I dont get why this pops up
Should_be_possible_to_create_a_family_instance_having_the_expected_methods
Method male should be defined with {} arguments of type String.
expected: but was:
my method:
boolean male(String name){
if(females.contains(name)) return false;
else {
males.add(name);
return true;
}
}