Add problem 8 specs
This commit is contained in:
parent
e5eef1d94f
commit
5c2d0c2a9f
1 changed files with 12 additions and 0 deletions
12
spec/problem-8.rb
Normal file
12
spec/problem-8.rb
Normal 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
|
Loading…
Reference in a new issue