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.
The Ruby Tester Code is at fault or the directions are wrong, I had to make sure that multiple spaces got replaced by a single space in the ID. This doesn't appear to be the directions. Other solutions did the same, I course corrected based on the failed tests.
No matter how many Hairs the Random Test cases have, the tests expect the code to return clean in Ruby. All random test cases in Ruby are expecting "Clean!".
Read the article in Launch School "refernces-and-mutability-in-ruby"
It works, my solution was just a simple Math::PI equation.
The rounding isn't working for Ruby or has changed, I get a rounding error with my solution and past solutions.
Removing every theoretical edge case isn't relevant and is not best pracitice and can even fall into bad practice. Staying pithy and readable is best practice. Much depends on the context whether you would use this or something else. If it's going to be used generally in a large application best to use a well worn solution or spend more than the 2 minutes creating method but you need to know the context of the method.
you are correct sir
Not sure what value random tests adds any value. My round() doesn't seem to work with random tests.