1
0
Fork 0

Spec for problem 15

This commit is contained in:
Andrew Tomaka 2015-05-12 18:21:44 -04:00
parent 5c2d0c2a9f
commit 9f2363faea

12
spec/problem-15.rb Normal file
View 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