/photo_organizer

A Coding Challenge Solution

Primary LanguageRuby

Photo Organizer

A Coding Challenge Solution

Description

Write a function that, given a string representing the list of M photos, returns the string representing the list of the new names of all photos (the order of photos should stay the same).

Setup

  • Clone this repository.
  • cd into the photo_organizer directory.
  • In the command line, run ruby photo_organizer.rb

or call the solution function

  • cd into the photo_organizer directory
  • start the ruby interpreter irb
  • require the file require './photo_organizer.rb'
  • execute the solution() function with the desired string (assumes string meets requirements and assumptions described in challenge doc)

Running Tests

To run tests:

  • gem install bundler
  • bundle install
  • bundle exec ruby photo_organizer_test.rb