Testing File Shuffler in I/O exercises

So I finished the file shuffle part of the I/O exercises, and noticing that there was no spec for this part, I figured I would just create a random txt file to check my code. Is there a way to run just one section or method from my .rb file in the terminal in order to test it?

Hey,
If you go to the alpha curriculum, under “writing good code” look at the section called Pry. I’m not sure if this is what you’re asking for, but you should be able to use pry to run and play around with specific methods of your code.

2 Likes

What Raynor said! Pry is an excellent tool to test your code. Let us know if you need more guidance on how to use it.