Inside the repo for this lab you will find 3 folders. The code folder contains the actual code that should be run. The data folder contains the input and output txt files used and generated by the lab. The spec is there for use with rspec, which I started to use, but then unfortunately was not able to continue to use.
To run the lab follow these easy steps!
- Make sure ruby is installed.
- Navigate to the
datafolder. - Optionally change the input file.
- Navigate to the
codefolder using your terminal or equivalent. - Run the code using "ruby insertion_sort.rb"
- Return to the
datafolder and open ouput.txt to see the results. - The End.