recurring_moment.rb
has a broken implementation of RecurringMoment
. There is a correct suite of RSpec tests for the class. Fix the module so that the tests pass!
bundle install
to install the dependenciesrspec recurring_moment_spec.rb
to run the full suite of testsrspec recurring_moment_spec.rb:[line_number]
to run a single line
Go ahead and edit the code in recurring_moment.rb
to make the module work!
- What's the runtime of the
match
function? - How could you improve this method?