TheOdinProject / ruby-exercises

MIT License
219 stars 1.06k forks source link

Input and Output Exercises #7

Open KevinMulhern opened 3 years ago

KevinMulhern commented 3 years ago

Lesson: https://www.theodinproject.com/courses/ruby-programming/lessons/input-and-output

This is similar to variables, it will be difficult to make test driven exercises so either a repl.it or a small problem description on the lesson itself might be better.

Thoughts?

CouchofTomato commented 3 years ago

@KevinMulhern Could we consider here writing tests that expect puts to have been called or print etc. I'm wondering if seeing how that is done might help when they have to test some of the games later. That's where some questions in the chat have been.

If not then again we recommend to follow along in a repl as they go and I haven't seen anyone struggle with using print or puts in their code so I wouldn't bother with a problem description

rlmoser99 commented 3 years ago

@KevinMulhern @CouchofTomato In reading your comments here & thinking about this lesson, I wonder if a lesson on how to test with puts/print is needed in the testing lessons (as it is only briefly mentioned in ruby_testing) not really here as a test-driven exercise.