Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 660 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 660 Bytes

ruby-diff

A simple test of ruby knowledge

Objective

There are two files. These two files contain strings. Write a ruby script that takes the contents of file1 and compares them to the contents of file2. Print the lines that appear in file1 but do not appear in file2.

Submission

Fork this repo, craft your solution, and submit a pull request when you're finished.

Hints and other information

  • The line number for the string is irrelevant
  • comparison should be case sensitive
  • it is merely a coincidence that each file contains 1000 lines.
  • Bonus points if your code is written in a reusable fashion.
  • Bonus points if your code has tests.