TheOdinProject / ruby-exercises

MIT License
219 stars 1.06k forks source link

Debugging Exercises: Create exercises and tests #69

Closed mgrigoriev8109 closed 2 years ago

mgrigoriev8109 commented 2 years ago

Complete the following checkboxes ONLY IF they are applicable to your PR. You can complete them later if they are not currently applicable:


1. Because: Closes https://github.com/TheOdinProject/ruby-exercises/issues/15

2. This PR: Adds four exercises, and associated tests to give learners the opportunity to practice their debugging skills.

3. Additional Information: I added comments as instructions in the debugging_exercises.rb file. 1) The first two exercises are used to reinforce the stack trace method of finding errors, I created purposefully long methods and broke them so that the tests would yield errors relatively long stack traces. 3) The third exercise is straight from the lesson, it asks the learner to use puts to fix the isogram method. 4) The fourth exercise is also straight from the lesson, it takes the yell_greeting method in the Debugging lesson, breaks it, and asks the learner to insert multiple breakpoints in an attempt to find out what went wrong.