Spec for problem 15
This commit is contained in:
parent
5c2d0c2a9f
commit
9f2363faea
1 changed files with 12 additions and 0 deletions
12
spec/problem-15.rb
Normal file
12
spec/problem-15.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
require_relative 'spec_helper'
|
||||
require_relative '../solutions/solution-15'
|
||||
|
||||
describe 'Lattice paths' do
|
||||
it 'works for the given example' do
|
||||
expect(Solution15.new(2).solution).to eq(6)
|
||||
end
|
||||
|
||||
it 'works for the known answer' do
|
||||
expect(Solution15.new(20).solution).to eq(137846528820)
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue