The goal is for you to see that if you pass a value to the assert method, it will either ensure it is true and continue on, or fail if in fact the statement is false. In this specific case, ignore everything except the method name (test_assert_truth) and the parts inside the method (everything before the end). You should get a new error.īefore moving on, think about what you are learning. You then change false to true and run the tests again. \# We shall contemplate truth by testing reality, via asserts. To verify your installation, in your terminal window simply type: If you do not already have Ruby setup, please visitįor operating system specific instructions. In order to run the koans you need Ruby installed. These instructions are for *nix platforms. If you see the method _ (a double underscore) listed, it is a hint to you to supply your own code in order to make it work correctly. Some, however, require you to supply your own answer. Some koans simply need to have the correct answer substituted for an incorrect one. It will stop at the first place you need to correct. They are presented in order in the path_to_enlightenment.rb file.Įach koan builds up your knowledge of Ruby and builds upon itself. The koans are broken out into areas by file, hashes are covered in about_hashes.rb, modules are introduced in about_modules.rb, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |