1
0
Fork 0

Add problem 8 specs

This commit is contained in:
Andrew Tomaka 2015-05-12 17:13:14 -04:00
parent e5eef1d94f
commit 5c2d0c2a9f

12
spec/problem-8.rb Normal file
View file

@ -0,0 +1,12 @@
require_relative 'spec_helper'
require_relative '../solutions/solution-8'
describe 'Largest product in a series' do
it 'works for the given example' do
expect(solution_8(4)).to eq(5832)
end
it 'works for the known answer' do
expect(solution_8(13)).to eq(23514624000)
end
end